check if table has no rows jquery code example Example: table row count in jquery // Table Row count in jquery var rowCount = $('#myTable tr').length;