How can you get all rows in a table without getting the rows in child tables?
var rows = $(\'tr\', tbl);
This will return ALL
If you just want the count of rows, you can simply use: Or you can use direct children selector:
var table = document.getElementById('tableID');
table.rows.length;
$('table > tbody > tr').each(function(index, tr) {} );