SyntaxFix
Write A Post
Hire A Developer
Questions
Use a selector that will select all the rows and take the length.
var rowCount = $('#myTable tr').length;
Note: this approach also counts all trs of every nested table!