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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:29:31+00:00 2026-05-16T05:29:31+00:00

I have a slight problem, I’m making a dropdown using the help from someone

  • 0

I have a slight problem, I’m making a dropdown using the help from someone else on this site. Using the following html and code

HTML

<div id="navbar">
    <!-- Navigation -->
    <ul>
        <li id="current"><a href="dashboard.php" class="nav-dashboard">Dashboard</a></li>
        <li><a href="client.php" class="nav-client">Client</a></li>
        <li><a href="how-it-works.php" class="nav-system">System</a></li>
        <li id="nav-mail"><a href="service-plans.php" class="nav-mail">Mail</a></li>
    </ul>
    <!-- End Navigation -->
</div>

<div id="dropdown_client">
    <ul>
        <li><a href="dashboard.php" class="nav-dashboard">Dashboard</a></li>
        <li><a href="client.php" class="nav-client">Client</a></li>
        <li><a href="how-it-works.php" class="nav-system">System</a></li>
        <li><a href="service-plans.php" class="nav-mail">Mail</a></li>
    </ul>
</div>

<div id="dropdown_mail">
     <ul id="dropdown-mail">
        <li><a href="email_templates.php">Email Templates</a></li>
    </ul>
</div>

JS

var MailTimeout;

function hideMailDropdown() {
  $("#dropdown-mail").hide();
  clearTimeout(MailTimeout);
}

$(document).ready(function() {
  $("#nav-mail").mouseover(function(){
    $("#dropdown-mail").show();
    clearTimeout(MailTimeout);
  });

  $("#dropdown-mail,#nav-mail").mouseleave(function(){
    var MailTimeout=setTimeout("hideMailDropdown()",500); /* Wait half a second before hiding */
  });
});

However when I move to the #dropdown-mail it disappears after half a second. How can I make it so it doesn’t disappear unless the mouseleaves both #dropdown-mail and #nav-mail

Thanks!

  • 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-16T05:29:31+00:00Added an answer on May 16, 2026 at 5:29 am

    Clear the timeout on entry to the #dropdown-mail as well:

    $("#dropdown-main,#nav-mail").mouseover(function(){
      $("#dropdown-mail").show();
      clearTimeout(MailTimeout);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 539k
  • Answers 539k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You might want to start with something like an Arduino,… May 17, 2026 at 2:12 am
  • Editorial Team
    Editorial Team added an answer The theory is that your app should never see the… May 17, 2026 at 2:12 am
  • Editorial Team
    Editorial Team added an answer I figured it out after some trial and error. Alejandro's… May 17, 2026 at 2:12 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a slight problem with .htaccess redirect. I have a dynamic site with
I have a slight problem. Having recently migrated on Mac, I've been pulling my
I have a slight problem with a path: D:\\Music\\DJ Ti%C3%ABsto\\Tiesto\\Adagio For Strings (Spirit of
I have a slight problem with getting the options within the select tag. Some
I have a slight problem... we made a change to our url structure the
I have a slight problem, I am trying to capture the input of two
I have a slight problem and cannot for the life of me figure out
I have had a slight problem with autoloading in my namespace. As shown on
I have run in to a slight problem. The story goes as follows: I
I'm having a slight problem with an Eclipse Plug-In in development. There is a

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.