Sortables lists - how i get the updated values of the list after been sorted
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.
--