views:

30

answers:

1

Hello

i have 2 divs next to each other i want mouseleave to fire when the mouse leaves the 2 divs not when it leaves one of them.

how can i do that using jquery?

Cheers

+2  A: 

You could surround the two divs with another div and catch the mouseleave on that.

CAbbott
This is probably the best way because it doesn't matter if there's a gutter space between them.
Austin Fitzpatrick