Redraw datatables after using ajax to refresh the table content?

前端 未结 9 606
遇见更好的自我
遇见更好的自我 2021-01-30 04:22

I am using Datatables and have a button on the page that refreshes the table using AJAX. To be clear the table isn\'t using an ajax source of data, we are just using ajax to ref

9条回答
  •  抹茶落季
    2021-01-30 05:11

    This works for me

    var dataTable = $('#HelpdeskOverview').dataTable();
    
    var oSettings = dataTable.fnSettings();
    dataTable.fnClearTable(this);
    for (var i=0; i

提交回复
热议问题