I have devised the following code.
HTML
<ul class="treatment-menu">
<li>Menu always visible</li>
<ul class="nav-child">
<li>Hidden sub menu</li>
</ul>
</ul>
Hover function
$('.treatment-menu li').hover(function () {
$(this).find('.nav-child').show();
},
function () {
$(this).find('.nav-child').hide();
});
FIDDLE http://jsfiddle.net/HBMfB/3/
However, I am facing difficulties in displaying the .navchild
when hovering over .treatment-menu li
.
Any suggestions?
Appreciate your help.