jQuery :gt selector
Definition and usage
:gt selector selects elements whose index value is higher than the specified number.
The index value starts from 0.
It is often used with other elements/selectors to select elements after a specific sequence number in a specified group (as shown in the example above).
Syntax
$(":gt(index)
Parameter | Description |
---|---|
index |
Required. Specifies the element to be selected. It will select elements whose index value is greater than the specified number. |
Tips and comments
Tip:Please use :lt selectorTo select elements whose index value is less than the specified number.