Generate page numbers using javascript/jquery?

后端 未结 4 1965
广开言路
广开言路 2020-12-31 20:45

How to generate page numbers like the below using javascript/jquery?

If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next... A

4条回答
  •  青春惊慌失措
    2020-12-31 21:45

    Use THIS or THAT plugin. They're both easy html pagination plugins. Put everything in the html at once and paginate with one of those.

提交回复
热议问题