I have trying to export showing result
statement in below of datatable
in Excel.
Here is my code:
table = $('#loadmaincat').DataTable({
"ajax" : {
"url" : "model/productListReport.php",
"type" : "POST",
"data" : {
"list" : "list",
"dataSrc": "data",
"type" : "all"
}
},
exportOptions: {
modifier: {
search: 'applied',
order: 'applied',
}
}
});
Can anybody help me?
Thanks in advance.