Sample Javascript DOM code for Pagination
HI
I have an issue with Pagination in Javascript DOM.
What i have done is Page numbers are continuously printed based on total number of pages.
But i want to split out the Pages like "< 1 2 3 4 >", now i have code for "1 2 3 4 5 6 7 8 9 10".
Please anyone help me to fix this issue.
What i need is,
total no pages =10
page limit =3
these are output from javascript
i want display like this, when page loading shows, "1 2 3"
if total no pages more than page limit so "1 2 3 >"
when i click on > symbol we want to show "< 4 5 6 >" like that.
Need snippets to achieve this.
Regards
Selva
|