javascript - Jquery Sortable with dynamic lists -
i have piece of script works fine relates 1 <ul>
.
$("#sortme").sortable({ update : function () { serial = $('#sortme').sortable('serialize'); $.ajax({ url: "includes/sort_menu.php", type: "post", data: serial, error: function(){ alert("theres error"); } }); } });
this arranges sections later need populated. each section new ul
created , next items placed in corresponding section.
to make new items sortable have used following code when appending new item section:
$('ul.sortable.'+section+'').sortable();
this works fine , allows me reorder items within specified sections.
as bit of code contained within function called when item added section problem arises want save order (as happens in top script). far have been unable fire similar function when items have been reordered.
how go activating function when reorder specific list ?
Comments
Post a Comment