jQuery :gt() Selector (original) (raw)

Last Updated : 11 Jul, 2025

The jQuery :gt() Selector select all elements with an index greater than the index mentioned in the matched set.

Syntax:

$(":gt(Index)")

Parameter:

Example 1:

HTML `

jQuery :gt() Selector
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14

`

Output:

Example 2:

HTML `

jQuery :gt() Selector
0 1 2
3 4 5
6 7 8
9 10 11

Change color

`

Output: