I have a dropdown menu and I'am using mouseenter() function. If mouse enters to my selector's area background-color returning to yellow. But ıf I leave from my selector's area I want to set default colour of my selector's area without using mouseleave() function.
How can I fix it?
$(document).ready(function(){
$("#l_ev_men").mouseenter(function(){
$(this).css("background-color","yellow");
$(this).css("color","black");
});
$("#l_ev_men").mouseleave(function(){ // ı dont want to use this function
});
});
#l_ev_men:hover, but browser support varies. What's the reason to use mouseleave?