jquery check if table body is empty code example Example: javascript check table not empty document.getElementById("myTable").rows.length