How do I generate page numbers for a multi page data set using javascript?
Consider there are 55 pages. I want to generate page numbers like this
1 2 3 4 5 ..... 55 next
Which is rather similar to the Stackoverflow questions pager
Any suggestions?