I'm trying to make a simple dropdown menu, this is my code so far:
HTML
<div id="menuBox">
<ul>
<li>
<a href="" class="activate">item 1</a>
<ul class="subs" style="display: none;">
<li>
<a href="">Sub 1 </a>
<a href="">Sub 2 </a>
</li>
</ul>
</li>
<li>
<a href="" class="activate">item 1</a>
<ul class="subs" style="display: none;">
<li>
<a href="">Sub 1 </a>
<a href="">Sub 2 </a>
</li>
</ul>
</li>
</ul>
</div>
JQUERY
jQuery(".activate").hover(function(){
jQuery(this).find('.subs').css("display", "block");
}, function(){
jQuery(this).find('.subs').css("display", "none");
});
When I try it on my site nothing happens, what am I doing wrong?