Description
The .eq() method is used to reduce the set of matched elements to the one at the specified index.
This method has the form:
.eq(index)
Parameter | Description |
---|---|
index | (required) Specifies an integer indicating the 0-based position of the element |
Return Value
This form returns a jQuery object.
This method has an alternate form:
.eq(-index)
Parameter | Description |
---|---|
-index | (required) Specifies an integer indicating the position of the element, counting backwards from the last element in the set |
Return Value
This form returns a jQuery object.