how can you get a row by the index?
var rows = $(\'tr\', tbl); rows.index(0).addClass(\'my_class\');
You could use the native rows[docs] property on the HTMLTableElement.
HTMLTableElement
$(tbl[0].rows[0]).addClass('my_class');
As noted by @Felix, I've assumed that tbl is a jQuery object. If not, do this:
tbl
$(tbl.rows[0]).addClass('my_class');