Without seeing a real example of your code, it's hard to give a good answer, but I will do my best.
Here is what I would do. I would wrap all your page numbers in a tag with a specific id like this ...
<span class="pageNumber">1</span> ... <span class="pageNumber">n</span>
Then here is jQuery ...
$.each($("span.pageNumber"), function()) { $(this).text('value'); });
You can increment values ββin a loop to count pages or anything else!
Hope this helps,
spryno724
source share