How can you get the first row in a table with a specific className?
var rows = $(\'tr\', tbl);
If you keep the proprietary :first selector out of it, you'll have a valid querySelectorAll selector.
var rows = tbl.find('tr.someClass').slice( 0, 1 );
or
var rows = tbl.find('tr.someClass').eq( 0 );
Also, using the context parameter $( selector, context ) is just a slower way of using the find()[docs] method.