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);
            }
            })
        });
Member Avatar

you could probably do the following (haven't tested):

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