Home > Article > Web Front-end > What is jquery's gt?
gt in jquery is a filter selector, used to obtain all elements greater than a given index (index) value, the syntax is "$(":gt(index)")"; this selector is commonly used Used with other selectors to select elements after a specific sequence number in a specified combination.
The operating environment of this tutorial: windows7 system, jquery1.10.2 version, Dell G3 computer.
"gt" is a filter selector in jquery, the full name is ":gt()
".
:gt() selector gets all elements that are greater than the given index (index) value, and the index number starts from 0.
Syntax:
$(":gt(index)")
index Required. Specifies the elements to be selected. Elements whose index value is greater than the specified number will be selected.
: The most common use of the gt() selector: used with other selectors to select elements after a specific sequence number in a specified combination (such as the example above).
Example:
0 | 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 |
Related video tutorial recommendation: jQuery Tutorial(Video)
The above is the detailed content of What is jquery's gt?. For more information, please follow other related articles on the PHP Chinese website!