/ Published in: jQuery
If your sortable.serialize() method doesn't work properly, do it by yourself ;-)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#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, }); } });