How to get element order number
- by martin-masiar
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