jQuery eq() Method
jQuery eq() Method
The eq() method is used to return an element with a specific index number of the selected elements. It starts at 0, so the first element will have the index number 0 and not 1.
Syntax:-
Its syntax is:- $(selector).eq(index)
Further Explanation:-
Parameter | Description |
---|---|
index | Required. Specifies the index of the element. |