How do you know if Tbody is empty?
How do you know if Tbody is empty? $("#btn"). click(function () { var rowCount = $('table. files>tbody>tr'). length; if (rowCount == 0) alert("Table Empty") else alert("Table not empty") }); What is Tbody in HTML? : The Table Body element. The HTML element encapsulates a set of table rows ( elements), indicating that they comprise the body of the table ( ). How do you fix a thead? How to create a table with fixed header and scrollable body ?By setting the position property to “sticky” and specifying “0” as a value of the top property for the element.By setting the...