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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:06:22+00:00 2026-05-15T16:06:22+00:00

I have a tooltip function in which I have a mouseout event on 2

  • 0

I have a tooltip function in which I have a mouseout event on 2 elements.
These two elements are child-parent (one into another).

Within this event I need to check if the mouse cursor is outside of both these 2 elements. How can I do this?

  • 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-15T16:06:23+00:00Added an answer on May 15, 2026 at 4:06 pm

    Instead of mouseout you can use mouseleave for this:

    $("#parentID").mouseleave(function() {
      alert("you have left the parent");
    });
    

    Where mouseout fires when entering a child, mouseleave doesn’t, it only fires when leaving the parent element that the event is bound to.

    From the docs:

    The mouseleave event differs from mouseout in the way it handles event bubbling. If mouseout were used in this example, then when the mouse pointer moved out of the Inner element, the handler would be triggered. This is usually undesirable behavior. The mouseleave event, on the other hand, only triggers its handler when the mouse leaves the element it is bound to, not a descendant.

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

Sidebar

Related Questions

I have a tooltip script which uses the mousemove jquery function. Everything works fine
I have a function which creates a tooltip for specific objects. Currently, I am
I have a global javascript function which .appends() a tooltip element to any element
I have below function which executes the qtip2 tooltip on certain divs ( #block_profile
I have a tooltip which appears then disappears after a couple of seconds. function
I have this code, which shows the tooltip within a box with the id
At www.euroworker.no/order I have been trying to add a tooltip function but it seems
I have a simple html multiline tooltip implementation: this.tooltip = function(tag) { xOffset =
I have written a function that positions a tooltip just above a textbox. The
I have a simple tooltip which has long JavaScript code in the divs. I

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.