arnon
Posts: 0
Joined: Mon May 27, 2013 2:35 pm

Read item's index in a draggable droppable jquery ui list

Hi,

Trying to read (get) items' index (order) in a draggable droppable jquery ui list. (jquery ui touch punch )

Trying this code:

---------------------

var list_item_1 = Appery("mobilelistitem_40");
alert('list_item_1 position is '+list_item_1.index());

Didn't work
What code do I need?

Thanks,
Arnon.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Read item's index in a draggable droppable jquery ui list

Hello! Try the following code:
codeAppery("mobilelistName").find("a").index(Appery("mobilelistitemName"))/code
where mobilelistName - name of entire List
(counting starts from 0, not 1)

arnon
Posts: 0
Joined: Mon May 27, 2013 2:35 pm

Read item's index in a draggable droppable jquery ui list

OK, What is the "a" in the .find(a) for?

arnon
Posts: 0
Joined: Mon May 27, 2013 2:35 pm

Read item's index in a draggable droppable jquery ui list

Thanks. That helped.
Arnon.

Return to “Issues”