Return to Snippet

Revision: 36500
at November 22, 2010 10:03 by bLeveque


Initial Code
$('#sortable').sortable({
     placeholder: 'ui-state-highlight',
     update : function ()
     {
       var serial = '';
       $('#sortable li.ui-state-default').each(function (key, value) { serial += $(value).attr('id')+'='+parseInt(key+1)+'&'; });
       $.ajax({
         url: 'ajax.php',
         type: 'POST',
         data: serial,
       });
     }
});

Initial URL


Initial Description
If your sortable.serialize() method doesn't work properly, do it by yourself ;-)

Initial Title
Own serialization for jQuery Sortable

Initial Tags
jquery

Initial Language
jQuery