Accordion Menu links not working
I followed a tutorial on here about Expanding Sliding Menu's or Accordion Menu's.
Here is the script:
- $(document).ready(function(){
- $(".Left #SideCategoryList ul#parent-cats ul:not(:first)").hide();
- $(".Left #SideCategoryList ul#parent-cats ul:visible").hide();
- $(".Left #SideCategoryList ul#parent-cats li h3 a").click(function() {
- $(".Left #SideCategoryList ul#parent-cats li ul:visible").slideUp("slow");
- $(this).parent().next().slideDown("slow");
- return false;
- });
- $(".Left #SideCategoryList ul#parent-cats li ul li a").click(function() {
- return true;
- });
- });
My problem is that the sub-nav's that slide out are links that I want to click, and what they do is behave the same as the parent nav and don't click through to the pages.