JQuery MouseEnter and MouseLeave

Source: Internet
Author: User
MouseEnter: Definition and usage

The MouseEnter event occurs when the mouse pointer passes through an element.

This event is most often used in conjunction with the MouseLeave event.

The MouseEnter () method triggers the MouseEnter event, or a function that runs when the MouseEnter event occurs.

Note: Unlike the MouseOver event, the MouseEnter event is triggered only when the mouse pointer passes through the selected element. The MouseOver event is also triggered if the mouse pointer passes through any child elements.

MouseLeave: Definition and usage

The MouseLeave event occurs when the mouse pointer leaves the element.

This event is most often used in conjunction with the MouseEnter event.

The MouseLeave () method triggers the MouseLeave event, or a function that runs when the MouseLeave event occurs.

Note: Unlike the Mouseout event, the MouseLeave event is triggered only when the mouse pointer leaves the selected element. If the mouse pointer leaves any child elements, the Mouseout event is also triggered.

MouseOver and MouseEnter

The MouseOver event is triggered regardless of whether the mouse pointer passes through the selected element or its child elements.

The MouseEnter event is triggered only when the mouse pointer passes through the selected element.


Mouseout and MouseLeave

The Mouseout event is triggered regardless of whether the mouse pointer leaves the selected element or any child elements.

The MouseLeave event is triggered only when the mouse pointer leaves the selected element.

JQuery MouseEnter and MouseLeave

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.