Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refreshTable(tableId,api){
- $("#"+tableId).DataTable().clear().destroy();
- var table = $("#"+tableId).DataTable({
- serverSide: true,
- ajax:{
- url:api,
- type: "GET"
- }
- });
- table.ajax.reload();
- table.on( 'xhr', function () {
- var json = table.ajax.json();
- console.log(json);
- } );
- }
Add Comment
Please, Sign In to add comment