I need to develop an accordion menu and am having trouble with the click event. My script:
$(document).ready(function(){
$('.dropdown').click(
function(){
$(this).find("ul").slideToggle();
return false;
}
);
});
SlideToggle calls an unordered list that sits inside an LI element. It works perfectly, but the links in the list stop redirecting. When I click on any of them, slideToggle () simply undoes, the menu returns to the original state and I am not redirected. Where am I going wrong?