how can you get a row by the index?
var rows = $(\'tr\', tbl); rows.index(0).addClass(\'my_class\');
Use eq()
$('tr', tbl).eq(0).addClass('my_class');