How can we get data once click on pagination buttons ?
How can we get data once click on pagination buttons ?
![mallikpk4u](https://secure.gravatar.com/avatar/9f71c0c0e67e2cb446a719e580a702f9/?default=https%3A%2F%2Fvanillicon.com%2F9f71c0c0e67e2cb446a719e580a702f9_200.png&rating=g&size=120)
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');
});