Hello,
I have a datatable with ajax pagination, when you click several times in the pagination button it shows an ajax error.
When I open the ajax error, the response has all the records:
I tried disabling the button after it is clicked but the problem persists:
.on('draw',function(){
$(".paginate_button.previous").click(function(){
$(this).attr('class','paginate_button previous disabled');
});
$(".paginate_button.next").click(function(){
$(this).attr('class','paginate_button next disabled');
});
});
What could be the problem?.. thanks