Index of current sortable item
I know I'm missing something really obvious, but being a little new to
jquery I'm getting a little lost ...
I would like very simply, to obtain the index of the item I've just
moved in a sortable list, ie:
$(function() {
$("#sortableDiv").sortable({
update: function (event, ui) {
alert("You just moved that element to the " + ______ + "th
position in the list");
}
});
});
I know it's something obvious, could someone please tell me?
I was hoping ui.item.index would give me what I'm looking for, but
that appears to be a function with a different purpose ...?
Thanks!!