Question and answer is powered by AnsPress.io
$('#ItemList').DataTable({});
I am using jQuery DataTable and I want to get the number of pages in DataTables using jQuery. How can I get the number of pages in DataTables using jQuery?
I am not getting the proper code for it.
Apply this code to get the number of pages in DataTables
var info = MyTable.page.info(); console.log(info);
After applying this code, clear the browser cache, run the web page, and check your console. I hope it will be helpful for you.