#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0

    JQ Drop Down Menu closing main objects


    Hello,
    With my friends help i made drop down menu like this: jsbin.com/uyepek/1/edit
    In Object "First" when i have expanded "Sub1" and then i click on "Sub2" the "Sub1" is closing. And now is my question, what need i to add to my javascript code to make when i have expanded "First" and then i click on "Second" the "First" have to colse?
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,165
    Rep Power
    184
    Originally Posted by kernelus
    Hello,
    With my friends help i made drop down menu like this: jsbin.com/uyepek/1/edit
    In Object "First" when i have expanded "Sub1" and then i click on "Sub2" the "Sub1" is closing. And now is my question, what need i to add to my javascript code to make when i have expanded "First" and then i click on "Second" the "First" have to colse?
    Post your code and maybe someone can get a better picture of what's going on with it. And... then they might be able to point you in the right direction.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0
    Here is my .js code:
    pastebin.com/q5WskErU

IMN logo majestic logo threadwatch logo seochat tools logo