Reputation: 3081
I am using a jquery selector to select a bunch of divs. I want to be able to ask for the 8th element of the resulting collection. How can I do this?
Upvotes: 0
Views: 42
Reputation: 11486
You could try the following: $(selector)[n];
or in your case: $(selector)[7]
Or even the use of :eq() $("div:eq(7)")
if you are selecting the eighth <div>
element.
Upvotes: 0