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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -