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