Check what element the cursor is on upon mouseleave() with jQuery?
问题 I have a set of list elements ( <li> within a <ul> ) laid out as bubbles on a chart like this, where the bubbles are the <li> elements: http://i.stack.imgur.com/PR7vR.png I want to be able to detect the difference between Moving the mouse from bubble #1 to the grid Moving the mouse from bubble #1 directly to another bubble, such as bubble 2 I've attempted to use $(this) in the .mouseleave() even for a bubble, but it registers the element that you're leaving rather than the element that you're