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

Related Questions

I have created this css3 dropdown menu that appears behind the image when I
I m new to PRADO, I have a file Home.page with code: <%@ Title=Contact
I have some html that creates a dropdown list. The list has text values
I have a PHP function that returns an array. This is the output of
I've been trying to create a custom skin/template for a TabControl in WPF. I
Heres my code: //Setup days $data['days']['FALSE'] = 'Day'; //Setup months $data['months'] = array('FALSE' =>
From a user form: I am trying to insert the following data: 1) First
I'm new to Linq. I have searched and searched the web for a solution,
(MSSQL newbie alert) I have a number of databases on my machine, some were
I'm struggling to figure out how to re-index (?) a series of hidden fields

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.