I'm dealing with some DOM code that looks like this:
.....
<ul>*
<li>
<ul>
Sone html here
</ul>
</li>
</ul>
.....
<ul>*
<li>
<ul>
<li>
<ul>
Some html here
</ul>
</li>
</ul>
</li>
</ul>
......
My question is: How do I locate the first <ul>
elements (marked by *) in the code above using jQuery?
I've tried using the following jQuery selector:
$('body ul:first-child')
However, it seems to only return one element. Any guidance on how to achieve this would be appreciated.