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

StackOverflow https://stackoverflow.com/questions/15239266

Pergunta

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

How can i do that?

Foi útil?

Solução

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
});
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top