Mustapha George Mustapha George - 10 months ago 51
jQuery Question

jQuery - select the second row in a table?

How do I target the second

in a table using jQuery? Do I use

// something like this..
var MyLocation = $('.myclass').closest('tr').after('tr'); // fixed

<table class ='myclass'>
<!-- put some thing here -->


Answer Source
$('.myclass tr').eq(1)

This will grab the second one.