datatables load ajax from data-atribute code example Example: datatable load data from ajax JS { $('#myTable').DataTable( { ajax: '/api/myData' } );