WordPress.org

Ready to get started?Download WordPress

Forums

jQuery menu click to slidedown, click to slideup (4 posts)

  1. jumust
    Member
    Posted 2 years ago #

    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]

  2. SNSD Photo
    Member
    Posted 2 years ago #

    usually i`m using slideToggle.

  3. jumust
    Member
    Posted 2 years ago #

    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!

  4. jumust
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic