I have$('.class:first'), I want $(.class:fourth') using jquery

Posted by Jean on Stack Overflow See other posts from Stack Overflow or by Jean
Published on 2010-03-18T09:22:51Z Indexed on 2010/03/18 9:31 UTC
Read the original article Hit count: 211

Filed under:

Hello,

I can select the first item in the div using

$('.class:first')

Now since I will have random id values, and the class remains the same, I want to access the id of the fourth element, will it be something like this

$('.class:fourth')

using jQuery.

Thanks Jean

© Stack Overflow or respective owner

Related posts about jQuery