I have function where I passed table:
function isEmpty(properTable){
}
var isEmpty1 = isEmpty($("#daysTable tbody"));
var isEmpty2 = isEmpty($("#daysTable2 tbody"));
and I don't know how I can find out whether table is empty or how many rows that table has. I need sth like this:
function isEmpty(properTable){
if((properTable tr).length > 0){
return false;
}
else{
return true;
}
}
and of course It doesn't work.