jQuery index selector

Posted by yoda on Stack Overflow See other posts from Stack Overflow or by yoda
Published on 2010-03-16T23:10:46Z Indexed on 2010/03/16 23:21 UTC
Read the original article Hit count: 248

Filed under:
|
|

Hi,

I'm trying to find out a way to know the index of a anchor tag inside a certain div (one div has multiple similar anchor tags), like this :

<div>
  <a>first</a>
  <a>second</a>
  <a>third</a>
</div>

I'm using jQuery, but so far found no sollution to find the index of the anchor I have the mouse currently over.

Any ideas?

Cheers!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript