Cannot reinitialise DataTable – dynamic data for datatable
In the current version of DataTables (1.10.4) you can simply add destroy:true to the configuration to make sure any table already present is removed before being re-initialised. $(‘#example’).dataTable({ destroy: true, aaData: response.data });