ドロップダウン メニューがあり、mouseenter()
関数を使用しています。マウスがセレクターの領域に入ると、背景色が黄色に戻ります。しかし、セレクターの領域から離れる場合は、関数を使用せずにセレクターの領域のデフォルトの色を設定したいと考えていmouseleave()
ます。
どうすれば修正できますか?
$(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
});
});