How to the index of a list item ????
Posted: Sat Oct 03, 2015 3:35 pm
I used this one but not working
$(this).parent().index();
always gives the value 2.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I used this one but not working
$(this).parent().index();
always gives the value 2.
Hi Vikram -
Could you please explain what you're trying to do with this code?
on click option of the list item
Hello,
Do you use this JS on the listitems which Appery.io generates automatically, with service? If so - it have to work.
Yes but its not working.
Some how it worked -- var index = Appery("mobilelist_2").find("[name=mobilelistitem_3]").index($(this).closest("li"));