Hide Header on empty table

Hide Header on empty table

mikeD123mikeD123 Posts: 12Questions: 6Answers: 0

i would like to hid the header when there are no data rows/TDs.

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    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

  • mikeD123mikeD123 Posts: 12Questions: 6Answers: 0

    i am using :
    counterChecked = $("table input[type=checkbox]:checked").length;

    seems to work. do you see any issues with doing it this way?

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    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

This discussion has been closed.