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.
精彩评论