[jQuery] Current element position on sort change

2008-03-07 Thread applecoremilo
Is there a way I am able to find out what position the dragged element is in.. IE: i have 5 list elements which are sortable, i drag element 4 into position 2. I need to update a referenced list with the new sort order. thanks.

[jQuery] Sortable Element Position

2008-03-07 Thread applecoremilo
Hi, I'm trying to figure out how i can get the current element position of a sortable list after drag has complete. Should i be using traverse for this?? code example: the second alert gives me -1 as an index. ie: ul id=foolivalue/lilivalue/lilivalue/li/ul