Easy Tutorial
❮ Sel Lastoftype Event_Metakey ❯

jQuery :eq() Selector

jQuery Selectors

Example

Select the second <p> element:


Definition and Usage

The :eq() selector selects elements with a specific index value.

The index values start at 0, so the index value of the first element is 0 (not 1).

The most common usage: used in conjunction with other selectors to select the element at a specified index within a specified combination (as in the example above).


Syntax

Parameter Description
index Required. Specifies the index of the element.

jQuery Selectors

❮ Sel Lastoftype Event_Metakey ❯