VOOZH about

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

⇱ jQuery mousemove() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery mousemove() Method

Last Updated : 11 Jul, 2025

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

Syntax:

$(selector).mousemove(function)

Parameters: This method accepts single parameter function which is optional. This parameter is used to specify the function to run when the mousemove event is call. 

Below examples illustrates the mousemove() method in jQuery:

Example 1: This example illustrates the use of mousemove() method.

Output: 

👁 Image
 

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

Output:

👁 Image
 
Comment
Article Tags:

Explore