Can anybody show me an example of how to catch the events on pagination buttons next/previous of datatables? In particular I\'m interested for the \"next\" button. It would
Use the code below to attach click event handler to "Next" pagination button.
var table = $('#example').DataTable({
drawCallback: function(){
$('.paginate_button.next:not(.disabled)', this.api().table().container())
.on('click', function(){
alert('next');
});
}
});
See this jsFiddle for code and demonstration.