Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9164497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:41:53+00:00 2026-06-17T14:41:53+00:00

The menu I want to modify has this HTML structure: <nav> <ul id=fashionmenu> <li

  • 0

The menu I want to modify has this HTML structure:

<nav>
  <ul id="fashionmenu">
    <li class=""><a href="#">Home<a/></li>
    <li class=""><a href="about.html">About<a/></li>
    <li class=""><a href="#">Services</a>
        <ul>
           <li><a href="#">Service 1</a></li>
           <li><a href="#">Service 2</a></li>
        </ul>
    </li>
    <li class=""><a href="#">Contact</a>
  </ul>
</nav>

What I have tried to accomplish was a delay on the dropdown menu, I already have the Jquery code for it, but for some reason I can’t understand (and here is where I kindly ask you to guide me) why on hover, even if has a nice smooth effect on hover , the menu doesn’t retire unless I hover again on it. BUt , of course, I would want that whenever I move the mouse to a different menu item, the dropdown menu to retire by itself automatically.

Here is the javascript:


    $(function(){
      $('#fashionmenu > li > ul')
        .hide()
        .click(function(e){
        e.stopPropagation();
      });


      $('#fashionmenu > li').toggle(function(){
        $(this)
        .removeClass('waiting')
        .find('ul').slideDown();
      }, function(){
        $(this)
        .removeClass('waiting')
        .find('ul').slideUp();
      });

    $('#fashionmenu > li').hover(function(){
      $(this).addClass('waiting');
        setTimeout(function(){
          $('#fashionmenu .waiting')
          .click()
          .removeClass('waiting');
          },300);
        }, function(){
          $('#fashionmenu .waiting').removeClass('waiting');
        });

    });

Thank you in advance for any answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:41:54+00:00Added an answer on June 17, 2026 at 2:41 pm

    do something like this: http://jsfiddle.net/mwwFn/1/

    $(function () {
      $('#fashionmenu > li > ul').hide().click(function (e) {
        e.stopPropagation();
      });
    
      $('#fashionmenu > li').toggle(function () {
        $(this).removeClass('waiting').find('ul').slideDown();
      }, function () {
        $(this)
          .removeClass('waiting')
          .find('ul').slideUp();
      });
    
      $('#fashionmenu > li').hover(function () {
        $(this).addClass('waiting').find('ul').slideDown();
    
      }, function () {
        $(this).removeClass('waiting').find('ul').delay(3000).slideUp();
      });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used this example to get a right click menu working. http://gmap3.net/examples/context-menu.html I
I want to modify this code which works pretty good but (or I don't
I have this menu with a slide down submenu: <ul class=sf-menu> <li class=menu-item current-menu-item>
I want to modify part of my base navigation menu based on a flag
I have the following HTML markup and I want the menu div tag to
I have a nav menu bar based on twitter bootstrap that I want to
Next to file menu i want to add a search menu that will have
In a nested WPF ToolBarPanel-ToolBar-Menu we want to get rid of the grip handle
I'm making a game and in the menu I want to display the text
I have a log out button on my main menu and I want it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.