I have a menu-like drop down container that hides via binding the \"mouseleave\" event.
A very simple and effective solution to this is to control the mouse pointer coordinates before performing the action. If the container out of focus to focus on the element "select", it checks the pointer. If the pointer is inside the container, it does not perform any action, however if this is the container element action is performed
$('#div_solapa_lateral').bind("mouseenter",function(){
$(this).animate({left:'0'},500);
});
$('#div_solapa_lateral').bind("mouseleave",function(e){
if ( e.clientX>360 || e.clientY<60 || e.pageY>625 )
$(this).animate({left:'-320'},500);
});
clientX and clientY to "position:relative;"
pageX and pageY to "position:absolute;"