JScript
// Wait for the page and all the DOM to be fully loaded
$('body').ready(function() {
// Add the 'hover' event listener to our drop down class
$('.dropdown').hover(function() {
// When the event is triggered, grab the current element 'this' and
if ($(this).find('.sub_navigation').is(":visible")) {
// find it's children '.sub_navigation' and display/hide them
$(this).find('.sub_navigation').slideUp();
} else {
$(this).find('.sub_navigation').slideDown();
}
});
});
First of all here is the fiddle //
I am using wordpress to create my site... (if that matters) Someone helped me get the drop-down menu to work better. But ever since I added the new JQuery script the link doesn't even work. I tried hovering over it but no menu dropped.
When I hover on the fiddle it works. Why is this? And how can I fix this?! :(