0

I have a hover submenu set up that is ALMOST working 100%.... only problem is that on page load the menu is not hidden. Once you hover it one time it works normally but I am trying to hide it on page load. Any ideas would be much appreciated

<script>

$(document).ready(function() {

$('.nav2').hide(); 
$(".nav").hover(function() {
$(this).find('.nav2').show();
}, 
function() {
$(this).find('.nav2').hide();
});

});
</script>

1 Answer 1

1

Maybe add a "display: none" style property to your .nav2 container

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.