使用jQuery的paginaton下拉列表 [英] paginaton dropdown with jquery
本文介绍了使用jQuery的paginaton下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个下拉菜单,让用户选择他们想要的记录编号?因此,如果我在db中拥有200条记录,它将有4页,并且下拉菜单将如下所示
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>
我在jquery中看到了与其他类型的分页,但没有下拉列表.任何帮助将不胜感激. 谢谢
I seen pagination with other types in jquery but not dropdown. Any help will be appreciated. Thanks
推荐答案
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.
这篇关于使用jQuery的paginaton下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文