jquery ui sortable id of moved

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jquery ui sortable id of moved

human444
how do i get the id of the item being moved in a sortable? also how do i get the new position of the item?
its in an update block, but it wont give the id. here is my code:

$(function () {
                $("#sortable").sortable({ update: function (event, ui) {
                    alert(ui.item.value);
                }
                })
            });