I’m just now trying to learn JQuery so this will probably be an easy fix for someone out there.
I picked up the simple dropdown code Chris gave out a while back. I’m having a weird problem where it actually only drops down in Firefox. Another point to consider is that I’m using it in WordPress.
Here’s my code in case I’ve just goofed up his code he gave us.
HTML
JQuery
$(function(){
$("ul.main-nav li").hover(function(){
$(this).addClass("hover");
$('ul:first',this).css('display', 'visible');
}, function(){
$(this).removeClass("hover");
$('ul:first',this).css('display', 'hidden');
});
});