I want to get number of one li
that I hover on with jQuery
.
this is my code :
<ul>
<li></li>
<li></li>
<li></li> /* I want hover on this element */
<li></li>
<li></li>
</ul>
I want when hover on certain element in top code get number of all lies
.... for example in top code I want get 3 (This means that this third element)
来源:https://stackoverflow.com/questions/18555857/how-to-get-the-position-of-an-specific-li-in-a-ul-tag