Cannot reinitialise DataTable - dynamic data for datatable

后端 未结 4 1184
南方客
南方客 2020-12-09 15:44

I have a datatable showing all employees. It is working fine for all employees on document.ready. I have a select tag containing the type of employees like

4条回答
  •  臣服心动
    2020-12-09 16:06

    Try something like below

        var $table=$('#example').dataTable({
                        "aaData": response.data,
                    });
    
    
        $table.fnDestroy();
    

提交回复
热议问题