VOOZH about

URL: https://www.geeksforgeeks.org/jquery/jquery-mouseenter-method/

⇱ jQuery mouseenter() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery mouseenter() Method

Last Updated : 11 Jul, 2025

The jQuery mouseenter() method is an inbuilt method which works when mouse pointer moves over the selected element. 

Syntax:

$(selector).mouseenter(function)

Parameters: This method accepts single parameter function which is optional. It is used to specify the function to run when the mouseenter event is called. 

Example 1: This example illustrates the mouseenter() method in jQuery.

Output: 

👁 Image
 

Example 2: In this example, a pop-up will come out when we move the mouse over the paragraph.

Output:

👁 Image
 

Related Articles:

Comment
Article Tags:

Explore