How can we get data once click on pagination buttons ?
How can we get data once click on pagination buttons ?
mallikpk4u
Posts: 14Questions: 5Answers: 0
Dears,#
I can able to get the current page data by using following code.
var data = table.rows({ page: 'current' }).data();
Above code give the content of the current page(Example 10 data). But when I click on pagination button then I won't get any data.
So how to get the data when we click on each pagination button ?
Thank you.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Suspect the problem is with your click event. This FAQ should help.
Kevin
Thanks Kevin. I got the solutions, below is the code for getting the data after clicking the next pagination buttons.
$('.paginate_button', this.api().table().container()).on('click', function(){
alert('next');
});