Does anyone know of a way in javascript/css to select the (n) <li>
in my code, while also specifying that the <li>
must have a parent with the current <a>
tag containing a specific href link?
<a href="www.link.com">CATEGORY NAME</a>
<div class="123">
<div class="categories ">
<span>Categories:</span>
<ul>
<li>
<a href="https://someweb.com/"> 1 </a>
</li>
<li>
<a href="https://someweb.com/"> 2 this is what i need to select </a>
</li>
</ul>
</div>
</div>
Thank you in advance for your response! Cheers!