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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:08:16+00:00 2026-05-11T12:08:16+00:00

I tried to create a dropdown menu in JQuery, but it’s proving quite difficult.

  • 0

I tried to create a dropdown menu in JQuery, but it’s proving quite difficult.

My code is here:

  $(document).ready(function(){          $('ul li').mouseover(function()         {               $(this).children('ul').show();         });         $('ul li ul').mouseover(function()         {               $('ul li ul').show();         }).mouseout(function(){               $('ul li ul').hide();         });    }); 

Basically I want to hover over a list item and the sub ul to drop down, then I can hover over the list items and If the mouse goes off of the sub nav, the menu hides again.

thanks, Keith

UPDATE: I removed the border from the CSS and it works fine, so it appears the mouseout is triggered when I hover over the 1px border, quite weird.

  • 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. 2026-05-11T12:08:16+00:00Added an answer on May 11, 2026 at 12:08 pm

    Are you aware of superfish? It is menu jQuery plug-in with excellent cross-browser support. It definitely doesn’t have the problem you are experiencing. I haven’t checked the source code, but the key difference is that it adds a delay on mouseout. This means that an action isn’t triggered, unless the position of the cursor is steady for some time (default delay is 800ms). This will solve your problem and is also a good thing to implement, as it will make your menu more user-friendly.

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

Sidebar

Ask A Question

Stats

  • Questions 85k
  • Answers 85k
  • 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 A good idea might be to use CGAssociateMouseAndMouseCursorPosition(0) to disconnect… May 11, 2026 at 5:06 pm
  • Editorial Team
    Editorial Team added an answer The documentation for LinkEndChild says this: NOTE: the node to… May 11, 2026 at 5:06 pm
  • Editorial Team
    Editorial Team added an answer Instead of working directly with tag names, keep two sets… May 11, 2026 at 5:06 pm

Related Questions

I tried to create a dropdown menu in JQuery, but it's proving quite difficult.
I am trying to configure a network connection using ConfigurationManager.ProcessConfiguration, with the configuration file
<asp:DropDownList ID=ddl1 runat=server> <asp:ListItem Text=First Value=1></asp:ListItem> <asp:ListItem Text=Second Value=2></asp:ListItem> </asp:DropDownList> <asp:TextBox ID=tb1 runat=server/> <asp:Button
I have tried different examples to filter a gridview by dropdownlist, but is it
(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When

Trending Tags

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

Top Members

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.