I have a main menu that will display the submenus with a click event in jquery (client wanted to be click instead hover) so I got it working however I still can\'t figure ou
Just Add this line into your code
$('#MainMenu > li').not(this).find('ul').slideUp();
FULL CODE
$('#MainMenu').find('> li').click(function() { $('#MainMenu > li').not(this).find('ul').slideUp(); $(this).find('ul').stop(true, true).slideToggle(400); return false; });
Check Fiddle