this is a follow up of my last question
In JS, I want a ul tag that contains li where class starts with jsx that contains a tag where href starts with /search…
this is a follow up of my last question
In JS, I want a ul tag that contains li where class starts with jsx that contains a tag where href starts with /search…
@bs113256
try the following
document.querySelectorAll("ul li[class^='jsx']:has(a[href^='/search']:not([hidden]))");
Hi @bs113256
Try this:
document.querySelectorAll('ul li[class^="jsx"] a[href^="/search"]');
Hope it helps!!
@Parvathy @jack.chan thanks both
Regards
Bal.Singh
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.