paginaton dropdown with jquery

痞子三分冷 提交于 2019-12-25 16:42:08

问题


I want to have a dropdown that will have the user select which record number they want to be on? so if I ave 200 records in db, it will have 4 pages and dropdown will look like this

"Just an idea..not an exact code"

<select>
<option>1-50</option>
<option>51-100</option>
<option>101-150</option>
<option>151-200</option>
</select>

I seen pagination with other types in jquery but not dropdown. Any help will be appreciated. Thanks


回答1:


Check this excellent tutorial/plugin for doing pagination with jQuery. You can bind the change event of your dropdown and then use next, previous callbacks on it.



来源:https://stackoverflow.com/questions/3311652/paginaton-dropdown-with-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!