I am trying to show the submenu on hovering the menus. I have succeeded in submenu level 1. But when I go to submenu level 2(ie, submenu of submenu) it is not working. I wan
jQuery(function(){ topNav = jQuery('ul.topnav > li > a'); if(jQuery(topNav).hasClass('hover')){ return } jQuery(topNav).hover(function(){ jQuery(this).addClass('hover'); jQuery(this).next('.subnav').slideToggle('', function(){ jQuery(topNav).removeClass('hover'); }); }); });