22-08-2010, 05:39 PM
Pour jQuery UI, regarde la méthodes "toArray" : .sortable( "toArray" ).
Citation :Serializes the sortable's item id's into an array of string. If you have
<ul id="a_sortable"><br>
<li id="hello">Hello</li><br>
<li id="goodbye">Good bye</li><br>
</ul>
and do
var result = $('#a_sortable').sortable('toArray');
then
result[0] will contain "hello" and result[1] will contain "goodbye".