HOW TO CHECK DATA TABLE IS EMPTY OR NOT ???
HOW TO CHECK DATA TABLE IS EMPTY OR NOT ???
bharatmicro
Posts: 6Questions: 0Answers: 0
can anybody tell how to check data table is empty or not .. e.g if table is empty then alert("is empty") and if not then alert("not empty")
This discussion has been closed.
Replies
So You can do this:
[code]
if(table.fnSettings().aoData.length===0) {
alert('no data');
} else {
alert('data exists!');
}[/code]
Allan