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
document.ready
Try something like below
var $table=$('#example').dataTable({ "aaData": response.data, }); $table.fnDestroy();