Hide Header on empty table
Hide Header on empty table
mikeD123
Posts: 12Questions: 6Answers: 0
i would like to hid the header when there are no data rows/TDs.
This discussion has been closed.
Answers
You can use
count()
to determine if the table is empty. The doc as an example. You can then use jQuery or your preferred method to hide the header.Kevin
i am using :
counterChecked = $("table input[type=checkbox]:checked").length;
seems to work. do you see any issues with doing it this way?
Sorry but there is not enough context around your code to know what its doing. But if it works then you should be good.
Kevin