How to use jQuery mouseenter() method

jQuery mouseenter() method

The mouseenter event occurs when the mouse enters, the pointer of the mouse, into the selected element. For example a paragraph, div. The mouseenter() method is used to perform a certain action as the mouseenter event takes place.

The mouseenter is generally used with the mouseleave event.

Syntax

$(selector). mouseenter(function)

Where function is optional. It runs as  double click event occurs.

e.g.

$(“p”). mouseenter(function)

$(“div”). mouseenter(function)

$(“button”). mouseenter(function)

An example of mouse enter method

Below is running examples of mouseenter() method with <p> HTML element.

jQuery mouseenter

Experience this example online



Read also: jQuery click


Was this article helpful?

Related Articles

Leave A Comment?