jQuery treat hover on two elements as one elements

Posted by davewilly on Stack Overflow See other posts from Stack Overflow or by davewilly
Published on 2011-11-22T16:59:52Z Indexed on 2011/11/23 9:50 UTC
Read the original article Hit count: 216

Filed under:

I have an image map which I have overlaid with some markers in the form of anchors. I currently have a hover trigger on each image map area and the associated anchor - as shown in screen shot enter image description here

I need to treat these two elements as one, as currently when mouse is moved out of one onto the other it calls .hover() and callback again. I want to call hover callback only when mouse is moved out of either elements.

© Stack Overflow or respective owner

Related posts about jQuery