replacing the table body
replacing the table body
Hello everyone, I'm new to using DataTables and I'v been struggling for an hour to do this:
I want to change the body of my DataTable .
I have been looking at tha API and searching the forum but I could not find anything.
The API has a function called .body() which is for getting table body. I would have been fantastic if there were a function for setting it.
Imagine I am getting a whole new table body through AJAX and I want to remove the old body and put it instead.
I used to do it by the jquery function 'html()' but looks like things are different here
Please Help me with this!