Friday, January 1, 2010

[jQuery] jquery sortable question

Hi,

I'm using the sortable plugin with JQuery 1.3. After a list item has
been moved to a new place, how do you get the new list item position
-- i.e. it's now the 1st, 2nd, 3rd ... item in the list as opposed to
its position on the screen?

Here's how I'm declaring my sortable list ...

$("#sortable").sortable({
revert: true,
handle : '.adminPrinterHeader',
update : function (event, ui) {
/* What goes here? */
}
}); //

Thanks, - Dave

No comments: