Try to use the filter() function.
$('table.yourclass').filter(':first') // first of matched tables
$('table.yourclass').filter(':last') // last of matched tables
$('table.yourclass').filter(':eq(2)') // 3rd matched table
1
solved How to add a row to non-unique table class using jquery