Search code examples
jquerydatatables

How to load jquery Datatables into div with ajax call


I need to load whole table into div with $.ajax, but after that, Datatables won't work. Can i do something about it?


Solution

  • Probably, the liveQuery plugin could help in that case.

    Live Query utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.