I use show()
and hide()
to show and hide rows in a table.
How could I count the number of non-hidden rows (more accurately, rows with display
!= none
) ?
Note that:
$('tr:visible').length
won't work because if the table itself has display=none
, the result will always be 0.