Ideally I want to hover over my <li>
in my menu and highlight each <li>
but as a test I have the following to change the class on hover. Any thoughts why this won't work?
Thanks so much.
.dropdownhoverIn a:hover
{
background-color: White;
color: #39C;
}
<form id="form1" runat="server">
<div id="multiDropMenu">
<ul id="menu">
<li><a href="#" id="places">Places</a>
<ul id="dropdown1">
<li><a href="http://google.com">To Go</a></li>
<li><a href="#">To See</a></li>
</ul>
</li>
<li><a href="#">Transportation</a></li>
</ul>
</div>
</form>
$(document).ready(function() {
$("#menu li").hover(function() {
$(this).find("ul").find("a").hover(function() {
$(this).addClass("dropdownhoverIn");
});
$(this).find("ul").slideToggle(250);
});
});