Hi,
I have a list like this:
<ul>
<li class="pageItem">1</li>
<li class="pageItem">2</li>
<li class="pageItem current">3</li>
<li class="pageItem">4</li>
<li class="pageItem">5</li>
</ul>
I want to calculate the list item position of .current. In this case it would be 3.
Just to make things clear: I don't want the X & Y position of the element. Just what number in the line it has.
Thanks!