'jQuery Finding first Row

How to find the first row of a table using jQuery?



Solution 1:[1]

Try the code $("table tr:first")

Solution 2:[2]

If you have THEAD tag in your table and want to get the first row of the TBODY you need to execute:

$ ("#myTable tbody tr:first")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 demongolem
Solution 2 mahval