Data table Cheatsheet

Ezra Cheatsheet

Data Table

While working with data tables if you want to populate the table from an ajax call, you have to first destroy and then re-draw the table:

$('#table1').DataTable().destroy();
$('#table1').find('tbody').append("<tr><td><value1></td><td><value1></td></tr>");
$('#table1').DataTable().draw();