as far as i understood you want to slidedown the submenu on hovering the list item one level above
<ul class="submenu">
<li><a href="#">Working With Us</a></li>
<li><a href="#">Work Culture</a>
<ul class="submenu">
<li><a href="#">Benefits</a></li>
</ul>
</li>
</ul>
i added the submenu class to all elements i want them to be initially hidden. then i made some modifications on the jquery code to work with all submenus
$('ul.submenu').hide();
$('ul.nav > li, ul.submenu > li').hover(function () {
if ($('> ul.submenu',this).length > 0) {
$('> ul.submenu',this).stop().slideDown('slow');
}
},function () {
if ($('> ul.submenu',this).length > 0) {
$('> ul.submenu',this).stop().slideUp('slow');
}
});
hope this will work for you
see http://jsfiddle.net/U7mqM/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…