The jQuery UI way is to allow the user to do it, by making the list sortable
;)
$("#names").sortable();http://jqueryui.com/demos/sortable/ If you're looking for it to be done programatically, no. - Richard On Wed, Aug 26, 2009 at 12:16 AM, Audrey Lee <[email protected]>wrote: > > Hello, > > Assume I have 3 span-elements: > > <div id="names"> > <span id="s1">Fred</span> > <span id="s2">Alan</span> > <span id="s3">Sally</span> > </div> > > Is there a jQuery-ui way to sort them so I get this: > > <div id="names"> > <span id="s2">Alan</span> > <span id="s1">Fred</span> > <span id="s3">Sally</span> > </div> > > ?? > > -Audrey > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
