[jQuery] selecting li - beginner learning jquery
Hi,
I'm trying to learn Jquery (reading Manning Jquery in Action)
in the book there is this sample:
<ul class="myList">
<li>
<a href="http://jquery.com">jQuery supports</a>
<ul>
<li>
<a href="css1">CSS1</a>
</li>
<li>
<a href="css2">CSS2</a>
</li>
<li>
<a href="css3">CSS3</a>
</li>
<li>
Basic XPath
</li>
</ul>
</li>
<li>
jQuery also supports
<ul>
<li>
Custom selectors
</li>
<li>
Form selectors
</li>
</ul>
</li>
</ul>
how would i be able to select just the <li> that has the JQuery also
Supports in it? i got this to grab it:
ul.myList li:eq(5)
just wondering if there is another way?
thanks.