update data datatable without reload the page code example
Example 1: reload ajax datatable
$('#example').data.reload();
Example 2: datatables keep order and page selection page refresh
$('#offersTable').dataTable({
"bStateSave": true,
"fnStateSave": function (oSettings, oData) {
localStorage.setItem('offersDataTables', JSON.stringify(oData));
},
"fnStateLoad": function (oSettings) {
return JSON.parse(localStorage.getItem('offersDataTables'));
}
});