generating data from database on button click ajax and datatables code example
Example: datatable load data from ajax
JS
{
$('#myTable').DataTable( {
ajax: '/api/myData'
} );
JS
{
$('#myTable').DataTable( {
ajax: '/api/myData'
} );