• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Catatan How To Reload Datatables Using Ajax

Kepala Suku

Web & Mobile Developer
Staff member
Sometimes we need reload datatables after particular action triggered by user. Could we do this? The answer is YES.
Let's suppose we create datatables variable as myTable. var myTable Then we initiate datatable like this:
myTable = $('#table').DataTable({
   "ajax": "report_read.php",
   "columns": [
    {"data": "date"},
    {"data": "description"},
    {"data": "action"}
Then we could reload myTable using this code: