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 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

Related Questions

I tried to create a Style for DataGridTextColumn with the following code <Style TargetType={x:Type
I have tried to find how to create DLL-s on linux using google, but
I am trying to create dropdown menu for Wordpress theme and having some silly
I'm using jquery to animate a dropdown menu. The children of a menu-item are
Dropdown menu (the right one, with city names like gudauri) here dev.holiday.ge/xhtml/main.html must look
I am trying to create a dropdown menu based on Stu Nicholls' : http://www.cssplay.co.uk/menus/pro_drop8.html
jsFiddle: http://jsfiddle.net/4z2Vx/ I'm trying to create a multi-column dropdown/menu widget. The image on the
Someone help me please. Here's the thing, I need to create three dropdown lists
I used Jquery to create a dropdown list, and some reason I can see
I tried to create this by following the video at http://www.asp.net/learn/videos/video-7026.aspx where Joe Stagner

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.