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

  • SEARCH
  • Home
  • 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 8219391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:08:28+00:00 2026-06-07T13:08:28+00:00

I have the following script which handles the sliding down a submenu: $(‘#nav li

  • 0

I have the following script which handles the sliding down a submenu:

$('#nav li #bottom').hover(function() {
    $(this).closest('#nav li').find('#sub_nav').slideDown("slow");
},
function() {
    $(this).closest('#nav li').find('#sub_nav').slideUp("slow");
});

The script is written in this way so that the slidedown will only be triggered when the user hovers over one of the divs within the nav list items, i.e. #bottom.

The trouble I am having is that though the slide down works fine, the menu slides up when the user hovers over the submenu and, of course, I don’t want the submenu to slide up until the mouse/cursor leaves #nav li #bottom or #sub_nav.

I have created a jsfiddle here so that you can see the menu in action.

SCREENSHOT OF STRUCTURE OF NAV ITEM

enter image description here

  • 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-07T13:08:29+00:00Added an answer on June 7, 2026 at 1:08 pm

    you can wrap the #sub_nav by div#wrapper, this way sub_menu is a part of bottom:

    <div id="bottom">
        <a href="#">Menu Item 1</a>
        <ul id="sub_nav">
          <li><a href="#">Item 1</a></li>
          <li><a href="#">Item 2</a></li>
          <li><a href="#">Item 3</a></li>
          <li><a href="#">Item 4</a></li>
        </ul>
    </div>
    

    also you can use stop() method:

    $('#nav li #bottom').hover(function() {
        $(this).find('#sub_nav').stop().slideDown("slow");
    },
    function() {
        $(this).find('#sub_nav').stop().slideUp("slow");
    });
    

    DEMO

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following hover script that handles the sliding down of sub menus
I have the following script on this page which handles the fading in and
I have the following function in a PHP script, which returns and API call:
I have the following script which first shows only the first para of the
I have the following script which appears multiple times on my page. I have
I have the following script which will delete a file off a BlackBerry. However,
Currently Im have the following script which checks to see if a checkbox value
I have the following python script which takes some inputs and puts them in
I have the following script, which is working for the most part Link to
I have the following script currently, which gets the category IDs as arrays: $sql_select_categories

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.