Mustapha George Mustapha George - 1 year ago 100
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download