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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:22:37+00:00 2026-05-25T10:22:37+00:00

So after reading a recently answered question i am unclear if i really understand

  • 0

So after reading a recently answered question i am unclear if i really understand the difference between the mouseenter() and mouseover(). The post states

MouseOver():

Will fire upon entering an element and whenever any mouse movements
occur within the element.

MouseEnter():

Will fire upon entering an element.

I came up with a fiddle that uses both and they seem to be quite similar. Can someone please explain to me the difference between the two ?

I have also tried reading the JQuery definitions, both say the same thing.

The mouseover event is sent to an element when the mouse pointer enters the element

The mouseenter event is sent to an element when the mouse pointer enters the element.

Can someone please clarify with an example?

  • 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-25T10:22:37+00:00Added an answer on May 25, 2026 at 10:22 am

    You see the behavior when your target element contains child elements:

    http://jsfiddle.net/ZCWvJ/7/

    Each time your mouse enters or leaves a child element, mouseover is triggered, but not mouseenter.

    $('#my_div').bind("mouseover mouseenter", function(e) {
      var el = $("#" + e.type);
      var n = +el.text();
      el.text(++n);
    });
    #my_div {
      padding: 0 20px 20px 0;
      background-color: #eee;
      margin-bottom: 10px;
      width: 90px;
      overflow: hidden;
    }
    
    #my_div>div {
      float: left;
      margin: 20px 0 0 20px;
      height: 25px;
      width: 25px;
      background-color: #aaa;
    }
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    
    <div>MouseEnter: <span id="mouseenter">0</span></div>
    <div>MouseOver: <span id="mouseover">0</span></div>
    
    <div id="my_div">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, I've been experimenting with mixing AudioInputStreams together. After reading this post , or
Recently, I've got a dangerous idea into my head after reading this blog post.
I recently started reading about ASP.net MVC and after getting excited about the concept,
After reading answer to this question: Make "make" default to "make -j 8" I
After reading MSDN-XAML Namespaces and MSDN-Understanding XAML Namespaces , I still do not understand
After reading the Bash man pages and with respect to this post , I
After reading this question, I need to clear up some things. IQueryable<Customer> custs =
I recently came across the subject of exact real arithmetic after reading this paper
After reading this question I attempted to clean out my workspace and found that
Recently, after reading a lot of tutorials around the Internet, I've noticed that some

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.