how to check if html table is empty using jquery

62

how to check if html table is empty using jquery -

if ($('#Table1 tr').length == 0) {
    //...do something here
}

Comments

Submit
0 Comments