navigation - jQuery hover - button stays to be with hover effect -


$("#navigation li.active").next().hover(function() {    $(this).css("box-shadow", "inset -4px 0 7px -5px black"); }); 

when release cursor button, button stays hover effect. can please how make normal hover effect, must shown when cursor on button.

you need add mouse leave handler

$("#navigation li.active").next().hover(function() {    $(this).css("box-shadow", "inset -4px 0 7px -5px black"); }, function(){    $(this).css("box-shadow", ""); }); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -