$.fn.dataTable.tables returns non existing tables
$.fn.dataTable.tables returns non existing tables
tanasis1101
Posts: 1Questions: 1Answers: 0
If the dom element of a datatable has been removed, then the $.fn.dataTable.tables() method still returns its object.
I tried the destroy() method (both before and after the table is removed) and nothing changes.
Is there a way to completely remove a datatable?
Answers
The
$.fn.dataTable.tables()
API works in this test case:https://live.datatables.net/powivuku/1/edit
I think you will want to use
destroy()
before removing the DOMtable
.Can you provide a link to a test case showing the issue?
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin