I use show() and hide() to show and hide rows in a table.
show()
hide()
How could I count the number of non-hidden rows (more accurately, rows with
Filter your rows based on their actual CSS property:
$('tr').filter(function() { return $(this).css('display') !== 'none'; }).length;