Vikram Raju
Posts: 0
Joined: Mon Jul 20, 2015 4:06 am

How to the index of a list item ????

I used this one but not working

$(this).parent().index();
always gives the value 2.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to the index of a list item ????

Hi Vikram -

Could you please explain what you're trying to do with this code?

Vikram Raju
Posts: 0
Joined: Mon Jul 20, 2015 4:06 am

How to the index of a list item ????

on click option of the list item

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to the index of a list item ????

Hello,

Do you use this JS on the listitems which Appery.io generates automatically, with service? If so - it have to work.

Vikram Raju
Posts: 0
Joined: Mon Jul 20, 2015 4:06 am

How to the index of a list item ????

Yes but its not working.
Some how it worked -- var index = Appery("mobilelist_2").find("[name=mobilelistitem_3]").index($(this).closest("li"));

Return to “Issues”