Results 1 to 2 of 2

Thread: AnyLink JS Drop Down Menu v2.2 - only first dd works

  1. #1
    Join Date
    Oct 2010
    Thanked 0 Times in 0 Posts

    Default AnyLink JS Drop Down Menu v2.2 - only first dd works

    1) Script Title: AnyLink JS Drop Down Menu v2.2

    2) Script URL (on DD):

    3) Describe problem: I'll start by saying I'm a JS novice and am trying to learn by doing, which is probably the real problem. On this page why does only one instance of the dropdown work? I have it coded so there should be THREE dropdowns (Rural Health Clinics, Outpatient Specialty Clinics and About AMC should all have dropdowns), but only the first one works. Not sure if I've given enough info, but any help would be much appreciated!

  2. #2
    Join Date
    Aug 2004
    Thanked 1,008 Times in 993 Posts
    Blog Entries


    The "rel" attribute of each anchor link needs to be set to the variable name that holds the drop down menu contents inside menucontents.js. With that in mind, there is a mismatch in values between the second anchor link's rel attribute and what's specified inside menucontents.js:

                <li><a href="#" class="menuanchorclass" rel="outpatientspecialtyclinics">Outpatient Specialty Clinic</a></li>
    The code in red should be "outpatientspecialtyclinic" (without the "s") so it matches up with the variable name defined inside menucontents.js
    DD Admin


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts