开发者

How to make a menu using UL LI sortable in jquery

How you i make my menu sortable so i can move there position around

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

 <li>
Members
<ul>
<li><a href=开发者_如何学Go"?p=view_users" target="_self">All Users</a></li>
</ul>
</li>

can someone lead me down the right path please

Thank you,


You can use jQuery UI Sortable for that. See the demo here.

The jQuery UI Sortable plugin makes selected elements sortable by dragging with the mouse.


Have a look at http://jqueryui.com/demos/sortable/

The sortable plugin provides that feature. They also provide some source code examples.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜