Reputation: 19112
What's the best way for selecting a table row by index using jQuery?
Thanks
Upvotes: 16
Views: 69707
Reputation: 4498
You can do it all in the selector:
$('#tableId tr:eq(4)')
Upvotes: 9
Reputation: 70785
If you don't have to worry about nested tables:
$('#tableId tr').eq(4)
Upvotes: 27