Selector to select third list item?

Posted by Richard Knop on Stack Overflow See other posts from Stack Overflow or by Richard Knop
Published on 2010-03-23T16:26:41Z Indexed on 2010/03/23 16:33 UTC
Read the original article Hit count: 297

Filed under:
|

Suppose a HTML markup like this:

<ul>
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li><!-- I want to select only this -->
</ul>

Would it be possible to select only the third list item in the unordered list element? I've been browsing the jQuery documentation but I can't find any selector that could do this.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors