lt
abbr. Lithuania Lithuania
jquery lt selector syntax
Function::lt selector selects elements with a value less than the specified index. The index value starts from 0. Often used in conjunction with other elements/selectors to select elements before a specific number in a specified group (as in the example above).
Syntax:$(":lt(index)")
Parameters:index Required. Specifies the elements to be selected. Elements whose index value is less than the specified number will be selected.
Note:Please use the :gt selector to select elements whose index value is greater than the specified number.
jquery lt selector example
Welcome to My Web Page
| Id | LastName | FirstName | Address | City |
|---|---|---|---|---|
| 1 | Adams | John | Oxford Street | London |
| 2 | Bush | George | Fifth Avenue | New York |
| 3 | Carter | Thomas | Changan Street | Beijing |
| 4 | Obama | Barack | Pennsylvania Avenue | Washington |
Click the "Run instance" button to view the online instance
