2010-11-06 47 views
1

你如何使我的菜单排序,所以我可以走动了如何使用UL李排序菜单中的jQuery

有位置
<ul id="nav-one" class="nav"> 
    <li> Home</a></li> 

<li> 
Members 
<ul> 
<li><a href="?p=view_users" target="_self">All Users</a></li> 
</ul> 
</li> 

有人可以使我沿着正确的路径,请

谢谢,

+0

你想如何分类?这些链接可能有帮助:http://stackoverflow.com/questions/304396/what-is-the-easiest-way-to-order-a-ul-ol-in-jquery和http://stackoverflow.com/questions/1134976/jQuery的排序列表项,按字母顺序 – DaiYoukai 2010-11-06 22:11:25

回答

2

您可以使用jQuery UI Sortable。 See the demo here

jQuery的UI可排序插件使得 选择的元素通过使用鼠标拖动 排序。