How to check if my html table is empty. Remember that the following table must be considered as empty table as there are no rows except headings.
<table style="float: left;text-align: center;" id="Table1"">
<th style="width: 11%;">Item Id</th>
<th style="width: 44%;">Item Name</th>
<th style="width: 11%;">Quantity</th>
<th style="width: 18%;">Trade Price</th>
<th style="width: 16%;">Price</th>
<th style="width: 7%;" id="non-printable">Delete</th>
</table>
These headings are fixed and I'm generating rows using javascript. I have to reset my javascript counter if table is empty. How can I check that the table is empty using javascript or jquery?
I'm incrementing in another counter while I am adding row with javascript.