sharepoint0520
asked on
Calculate the Total pages from Total items and RawLimit in Javascript?
Hi,
I am working on custom pagination where i need to calculate the total pages to help with Total count and Rawlimit variable. I am using some manually code. Can you please help me to update my code to calculate Total number of pages?
I am working on custom pagination where i need to calculate the total pages to help with Total count and Rawlimit variable. I am using some manually code. Can you please help me to update my code to calculate Total number of pages?
var totalItems = 1200;
var RawLimit = 30;
var totalPages = (totalItems /RawLimit) +1; // Mod function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Hagay and Zakaria.
Open in new window