<div class="grid_12">
:
<div id="list">
<div class="parent ui-sortable">
<div class="grid_12">
<h2 id="arrayorder_1">Home</h2>
</div>
<div class="grid_12">
<h2 id="arrayorder_2">Profil</h2>
</div>
</div>
</div>
和消息:
警告:为foreach()提供的参数无效
sortable不会生成数组,这里是我的jquery可排序脚本
$(function() {
// uiSort utama parent
$('#list .parent').sortable({
axis: 'y',
opacity: 0.8,
placeholder: 'placeholder',
cursor: 'move',
update: function() {
var order = $(this).sortable("serialize") + '&update=update';
$.post("updateList.php", order, function(theResponse){
alert(theResponse);
});
}
});
});
请回答这个foo ..谢谢^^&#39;