How to get element order number
Posted
by martin-masiar
on Stack Overflow
See other posts from Stack Overflow
or by martin-masiar
Published on 2010-04-09T08:23:50Z
Indexed on
2010/04/09
8:33 UTC
Read the original article
Hit count: 538
Hello everyone,
how can i get order number of some element by javascript/jquery?
<ul>
<li>Anton</li>
<li class="abc">Victor</li>
<li class="abc">Simon</li>
<li>Adam</li>
<li>Peter</li>
<li class="abc">Tom</li>
</ul>
There is 3xli with abc class. Now I need to get order(sequence) number of Simon li.
Thanks in advance
© Stack Overflow or respective owner