jquery sortable can not work?
Could anyone can tell me how to add effect to all divs?
jQuery:
data = $("#sortable_list1").sortable("serialize");
update:function()
{
$.ajax({
data:serial,
url:"list.php",
type:"post",
success:function(data){
$("#serverResponse").html(data);
}
});
}
Html:
I have 2 divs which id is sortable_list1
<div id="sortable_list1">
<div>item1</div>
<div>item2</div>
</div>
<div id="sortable_list1">
<div>item1</div>
<div>item2</div>
</div>
but it only first sortable_list1 can be serialize.how to sorable
second or more?
thanks