Revision: 36500
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
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