Cannot read property 'isDataTable' of undefined?
Cannot read property 'isDataTable' of undefined?
ShahiDev
Posts: 16Questions: 7Answers: 0
if ($.fn.DataTable.isDataTable("#datatable")) {
$('#datatable').DataTable().clear().destroy();
}
When i compile it, it gives me error, Cannot read property 'isDataTable' of undefined! what is the solution?
This discussion has been closed.
Answers
The solution is to use the correct case - see
$.fn.dataTable.isDataTable()
Note the first lower-case 'd'
@colin It was not a typo error, there is nothing wrong with my syntax. i've solved it, there was problem in configuring it. thanks for your reply.