开发者

How to make a menu using UL LI sortable in jquery

开发者 https://www.devze.com 2023-01-24 00:50 出处:网络
How you i make my menu sortable so i can move there position around <ul id=\"nav-one\" class=\"nav\">

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

精彩评论

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

关注公众号