Possible Duplicates:How to get index of elementjQuery - get the index of a element with a certain class I have: li1 li2 li3 There are some other and tags elsewhere. I want to get the index of li2 which is in the with id parent using jQuery
Possible Duplicates:How to get index of elementjQuery - get the index of a element with a certain class
I have:
li1 li2 li3
There are some other and tags elsewhere.
I want to get the index of li2 which is in the with id parent using jQuery