Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any method to callback a function when user click on pagination link in jquery datatable?

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

How can i do that?

like image 206
Manivasagan Avatar asked Mar 06 '13 04:03

Manivasagan


1 Answers

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
});
like image 90
Lukasz Koziara Avatar answered Sep 29 '22 09:09

Lukasz Koziara