you need to use  $('#sortable').sortable('serialize');
 but all your <li> items must have an id containing an underscore for
exammple  <li id="foo_1">foo</li>

Mean Mike
On Dec 3, 7:14 am, pablo <[email protected]> wrote:
> Hello, im doing my fist jquery sortable list, and im a bit lost.
> I just want to know how do i get the values of the list items after
> sorting them to update my database with the changes.
>
> this is the easiest example
>
> <ul id="sortable" style="width:30px;">
>         <li class="ui-state-default">1</li>
>         <li class="ui-state-default">2</li>
>         <li class="ui-state-default">3</li>
>         <li class="ui-state-default">4</li>
>         <li class="ui-state-default">5</li>
> </ul>
>
> I supose there's a function already developed that's able to do this.
> thank you so much.

--

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.


Reply via email to