Getting the position of the element in a list when it's drag/dropped (ui.sortable)
Posted
by Wurlitzer
on Stack Overflow
See other posts from Stack Overflow
or by Wurlitzer
Published on 2010-03-14T13:15:58Z
Indexed on
2010/03/14
13:25 UTC
Read the original article
Hit count: 223
JavaScript
|jQuery
Hi,
I have a sortable list like this one: http://jqueryui.com/demos/sortable
Is it possible to get the start and end position of the element in the list, when it has been moved? I'm talking about their position number, in the list.
For example, if I move element 2 to position 5 in the list, I'd like to assign those two numbers to variables.
I'm new to jQuery - any help would be much appreciated.
© Stack Overflow or respective owner