Javascript - select tag with specific criteria

@bs113256
try the following
document.querySelectorAll("ul li[class^='jsx']:has(a[href^='/search']:not([hidden]))");

1 Like