jQuery core's method ".index()" would be a solution....

here's an example:

http://jsbin.com/ozoda/edit


On Jan 2, 12:17 am, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote:
> 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

Reply via email to