I need to find a way to hide my drop down menu by default, as it currently shows up automatically. The drop down menu in question is under "My Account".
This is the HTML code I'm working with:
<li class="hoverli">
<a href="/customer/account">My Account</a>
<ul class="user-account">
<li><a href="">edit my account</a></li>
<li id="wish"><a href="">my wishlist</a></li>
<li id="gift"><a href="">my gift registry</a></li>
</ul>
</li>
And here's the corresponding JavaScript:
<script type="text/javascript">
jQuery(function(){
jQuery(".hoverli").hover(
function () {
jQuery('.user-account').slideDown('slow');
},
function () {
jQuery('.user-account').slideUp('slow');
}
);
});
</script>