Page 1 of 1

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

Posted: Sat Oct 03, 2015 3:35 pm
by Vikram Raju

I used this one but not working

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


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

Posted: Sat Oct 03, 2015 10:35 pm
by Illya Stepanov

Hi Vikram -

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


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

Posted: Mon Oct 05, 2015 4:20 am
by Vikram Raju

on click option of the list item


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

Posted: Mon Oct 05, 2015 7:12 pm
by Serhii Kulibaba

Hello,

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


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

Posted: Tue Oct 06, 2015 5:06 am
by Vikram Raju

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