how to use jquery index()
Posted
by salmane
on Stack Overflow
See other posts from Stack Overflow
or by salmane
Published on 2010-05-02T15:29:04Z
Indexed on
2010/05/02
15:37 UTC
Read the original article
Hit count: 128
jQuery
I am trying to find the index of the following element
<ol id="parent">
<li><a></a></li>
<li><a class="index_of_this"></a></li>
<li><a></a></li>
<li><a></a></li>
</ol>
But I keep getting -1
$('#parent a.index_of_this')
thank you for your help
© Stack Overflow or respective owner