jquery - Send html table to controller in MVC by ajax As JSON Object in datatable -
i'm using datatables jquery plugin , i'm having trouble
reference below link can download table json,
https://datatables.net/extensions/buttons/examples/html5/customfile.html
but in case want save table json in variable send controller use angular or jquery ajax
i can using tabletojson library store showing row in current page not full rows
{ var table = $('#datatable').tabletojson();}
if you're using client-side processing, can retrieve data whole table using data()
api method.
var data = $('#datatable').datatable().data();
Comments
Post a Comment