KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicates: How to get index of <li> element jQuery - get the index of a element with a certain class I have: <ul id="parent"> <li id="li1">li1</li> <li id="li2">li2</li> <li id="li3">li3</li> </ul> There are some other <ul> and <li> tags elsewhere. I want to get the index of li2 which is in the <ul> with id parent using jQuery
Tags (comma-separated)
Save Edits
Cancel