:lt() selector

:lt() Selector

lt selector

Description: Select all elements at an index less than index within the matched set.

  • version added: 1.0jQuery( ":lt(index)" )

    index: Zero-based index.

  • version added: 1.8jQuery( ":lt(-index)" )

    indexFromEnd: Zero-based index, counting backwards from the last element.

  • <