Is there a way to cancel a function when a user clicks a pagination link in a jquery datatable?

I want to call a java script function when the user clicks the pagination link in a jquery datatable.

How can i do this?

+7
source share
1 answer

You can use the page event, which is the fire after the page changes. Bind page event after datatables initialization:

 $('#table_instance').dataTable({some attributes}); $('#table_instance').bind('page', function () { //call some function here }); 
+3
source

All Articles