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!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---