1

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="?p=view_users" target="_self">All Users</a></li>
</ul>
</li>

can someone lead me down the right path please

Thank you,

Rickstar
  • 6,057
  • 21
  • 55
  • 74
  • How do you want to sort it? These links might help: http://stackoverflow.com/questions/304396/what-is-the-easiest-way-to-order-a-ul-ol-in-jquery and http://stackoverflow.com/questions/1134976/jquery-sort-list-items-alphabetically – DaiYoukai Nov 06 '10 at 22:11

2 Answers2

2

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.

Sarfraz
  • 377,238
  • 77
  • 533
  • 578
1

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

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

Kai
  • 541
  • 1
  • 3
  • 11