How to check if DataTable exists on an element
How to check if DataTable exists on an element
ibokat
Posts: 5Questions: 4Answers: 0
How can I check if a DataTable object has already been applied to an existing HTML element.
$('#mytable').DataTable(); throws an error if the datatable has not yet been applied.
Thanks
This question has an accepted answers - jump to answer
Answers
Use
DataTable.isDataTable()
.Kevin