Check what element the cursor is on upon mouseleave() with jQuery?
You need to use event.toElement || e.relatedTarget: $(‘li’).mouseleave(function(e) { // new element is: e.toElement || e.relatedTarget }); (Edited to note || e.relatedTarget to ensure browser compatibility)