WordPress.org

Support

Support » How-To and Troubleshooting » jQuery menu click to slidedown, click to slideup

jQuery menu click to slidedown, click to slideup

  • Hi,
    I had a menu with Hover jQuery function but I changed it to be on Click. It works, when I click on the menu tab the submenu slidedown. How can I make the menu slideup when I click again on the tab?

    Now the submenu always stays there.
    I think I can use something like is.visible but I don’t know how….

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • usually i`m using slideToggle.

    Thanks! I’m struggling with this as I don’t know jQuery well.

    I tried to replace it with slideToggle but I don’t know how exactly and also tried this, I added the slideUp and now the submenu slideup but then it doesn’t work anymore if I click again….Do you know if I can fix this to work properly?

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    THANKS for your help!

    Here it’s the code http://pastebin.com/jL4dxBBN

    Shortly, it slides down when I click, When I click again it slides up
    Than it stops working

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘jQuery menu click to slidedown, click to slideup’ is closed to new replies.