How do I check if data table is not initialized and data table has zero rows at the same time??
How do I check if data table is not initialized and data table has zero rows at the same time??

How do I check if data table is not initialized and data table has zero rows at the same time??
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use
$.fn.dataTable.isDataTable()
to see if the HTML table is initialized as a Datatable. You can usecount()
to see if the table is empty, the second example show how.Kevin
thank you, Kevin