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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:39:55+00:00 2026-05-24T20:39:55+00:00

I searched already and somehow I didn’t find a matching question .. o.O Now,

  • 0

I searched already and somehow I didn’t find a matching question .. o.O

Now, i got two divs, “div 1” and the other one is hidden (“submenu”). Now if I hover over div 1, the submenu appears just next to the div, which is correct. But if I move my mouse to the submenu, it disappears.

It’s because I got a hover trigger on div 1.

If I split in into mouson and mouseout, is it somehow possible to say ‘submenu must be closed when mouseout, but ONLY if the cursor is not on the submenu’?

Thanks for help!

Flo

  • 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-24T20:39:58+00:00Added an answer on May 24, 2026 at 8:39 pm

    The trick requires two things:

    1. A parent div that wraps both the initial menu (div 1) and the second menu (submenu)
    2. Use the .mouseleave() method, NOT .mouseout() — and bind this to the parent div mentioned in #1

    jsFiddle example

    You don’t want to use mouseout(), because that will fire as soon as the cursor goes over the second menu, since this essentially “blocks” it from being over the parent div. mouseleave(), on the other hand, will only fire once the cursor is no longer over either the parent div, or any of it’s children.

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

Sidebar

Related Questions

I've got kind of a tricky question, I already searched every related question on
Apologies if I missed this question already, but I searched and couldn't find it.
I have already googled and searched stackoverflow but I can find nothing related to
I have searched already but unable to find an answer that works. I simply
I already searched on the web for it but I didn't get satisfying results.
i have already searched everywhere but could not find a solution for the problem.
I've already searched the archives but can't find a solution that works for linq
I already searched for this and I did not find the answer I was
I have already searched for many questions at Stackoverflow, but I really didn't consider
I have already searched from this question in SO. But none of the answers

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.