I want to call a java script function when user click on pagination link in jquery datatable.
How can i do that?
You can use page
event, which is fire after page changed. Bind page
event after datatables initialization:
$('#table_instance').dataTable({some attributes});
$('#table_instance').bind('page', function () {
//call some function here
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With