Easy Tutorial
❮ Event Undelegate Traversing Parentsuntil ❯

jQuery :gt() Selector

jQuery Selectors

Example

Select all <tr> elements after the first 4:


Definition and Usage

The :gt() selector selects elements with an index greater than the specified number.

The index starts at 0.

Common usage: Used in combination with other selectors to select elements after a specific index in the specified group (as in the example above).

Tip: Use the :lt selector to select elements with an index less than the specified number.


Syntax

Parameter Description
index Required. Specifies the element to select. <br>Selects elements with an index greater than the specified number.

jQuery Selectors

❮ Event Undelegate Traversing Parentsuntil ❯