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可排序插件使得 選擇的元素通過使用鼠標拖動 排序。