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 6845985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:34:04+00:00 2026-05-27T00:34:04+00:00

I have a menu in which only one item has a sublist. Here is

  • 0

I have a menu in which only one item has a sublist. Here is the HTML code:

<div id="menu">
<ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="#">Products</a></li>
    <li><a href="#">About</a>
        <ul>
            <li><a href="#">Example One</a></li>
            <li><a href="#">Example Two</a></li>
            <li><a href="#">Example Three</a></li>
        </ul>
    </li>
</ul>
</div>

I would like to slideDown the menu and stay on, when the mouse is on the menu or submenu. So the following is working good, but I want the same thing with hover and not click.

 $('#menu ul li').click(function() {
  $('#menu ul li ul').slideToggle('slow', function() {

  });
});

I tried with hover but it’s very buggy, here is the code too:

$("#menu ul li").hover(
  function () {
    $("#menu ul li ul").slideDown('slow');
  },
  function () {
    $("#menu ul li ul").slideUp('slow');
  }
);

I tried to add .stop(true, true) or $("#menu ul li ul").css("display", "block"); after the slideDown but it’s still buggy.

CSS

#menu ul {
    list-style: none;
}
#menu ul li {
    display: block;
    float: left;
    padding: 0;
    margin: 0 30px;
}
#menu ul li a {
    color: #8b4513;
    text-decoration: none;
    font-size: 16px;
}
#menu ul li a:hover {
    text-decoration: underline;
}
#menu ul li a img {
    position: relative;
    top: 2px;
    left: -4px;
}
#menu ul li ul {
    position: absolute;
    width: 151px;
    height: 90px;
    top: 59px;
    left: 300px;
    padding: 10px 0 0 0;
    background: url(gfx/submenu.png) no-repeat;
    z-index: 1;
}
#menu ul li ul li {
    height: 27px;
    float: none;
    margin: 0 25px;
}
  • 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-05-27T00:34:05+00:00Added an answer on May 27, 2026 at 12:34 am

    Check it out live

    HTML

    <div id="menu">
    <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Products</a></li>
        <li><a href="#">About</a>
            <ul>
                <li><a href="#">Example One</a></li>
                <li><a href="#">Example Two</a></li>
                <li><a href="#">Example Three</a></li>
            </ul>
        </li>
    </ul>
    </div>
    

    Jquery

    $("#menu ul li").hover(
      function () {
        $(this).children("ul").stop(true,true).slideDown('slow');
      },
      function () {
        $(this).children("ul").stop(true,true).slideUp('slow');
      }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a menu div which has a dark background. Inside it, I have
I have dropdown menu..which is dynamic.. How can get value of the last item
I have a menu running off of a sitemap which one of the SiteMapNode
I have a vertical menu in my system which is basically made of HTML
I have a web system which has a classical parent-children menu saved in a
I have a form which is a mdicontainer and has a menu strip at
I have an application which, for convenience (I am reusing existing code) has been
In my code I have a ListActivity . One of the context menu options
I have a asp:menu object which I set up to use a SiteMapDataSource but
I have a column called menu_order which has no default value. When I select

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.