how to find first row of a table using jquery?
+4
A:
You can use :first
with a tr
element selector, for example:
$("table tr:first")
Or for a specific table:
$("#myTable tr:first")
Nick Craver
2010-09-17 14:11:36
assuming your table id is myTable
Shyju
2010-09-17 14:13:27
@Shyju - For the second version, yes, the question's a bit unclear. You may also want for example `tbody > tr:first-child` to select them in multiple tables...there are lots of approaches here :)
Nick Craver
2010-09-17 14:17:44
i dont think ive ever come across a jQuery question and not seen an answer by Nick Craver =) "The fastest hands in the wild west." +1
RPM1984
2010-09-20 23:55:12