Results 1 to 3 of 3

Thread: Accordion Menu script (v1.7.1) expandone function not working

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion Menu script (v1.7.1) expandone function not working

    1) Script Title: Accordion Menu script (v1.7.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...enu-bullet.htm

    3) Describe problem: I've implemented this script successfully, and used a PUBLIC function in my first navigation item: accordion.expandone('subexpandable', 0) This function manually expands the first nested <li> onclick. However, if I call this same function within a second nav item it toggles the <li> in the first nav item. Is there a way to target just the second, third, up to maybe 13+?

    If anyone can tell me what may be happening, or how to implement this solution I'd appreciate it. Thanks!

    -Jeff
    Last edited by jmm; 09-04-2009 at 01:45 PM. Reason: Added URL to the demo menu

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm a little confused on your problem actually. So the issue occurs when I click on the "Pages" sub LI link? If so, how so exactly?
    DD Admin

  3. #3
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for getting back to me. The issue is likely a name collision. Using expandone to force open the "Pages" section in navigation item (1) works, however, using that same function in navigation item (2) to force open it's "Pages" section onclick toggles navigation item (1's) "Pages".

Bookmarks

Posting Permissions

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