विश्व का सबसे बड़ा हिंदी वेब डेवलपर साइट

jQuery :eq() Selector

jQuery Selectors jQuery Selectors


Select the second <p> element:

Try it yourself »

Definition and Usage

The :eq() selector selects an element with a specific index number.

The index numbers start at 0, so the first element will have the index number 0 (not 1).

This is mostly used together with another selector to select a specifically indexed element in a group (like in the example above).



Parameter Description
index Required. Specifies the index of the element

jQuery Selectors jQuery Selectors