Sometimes, we want to remove pagination in datatable with JavaScript.
In this article, we’ll look at how to remove pagination in datatable with JavaScript.
How to remove pagination in datatable with JavaScript?
To remove pagination in datatable with JavaScript, we set the paging
option to false
.
For instance, we write
$("#example").dataTable({
paging: false,
});
to call dataTable
with an object that has paging
set to false
to disable pagination.
Conclusion
To remove pagination in datatable with JavaScript, we set the paging
option to false
.