The mouseleave() method is an inbuilt method in jQuery which works when the mouse pointer leaves the selected element.
Parameters: This method accepts single parameter function which is optional. It is used to specify the function to run when the mouseleave event is called.
Return Value: This method returns the selected element with the changes made by mouseleave() method.
Below example illustrates the mouseleave() method in jQuery:
Before moving mouse over paragraph:
After moving mouse over the paragraph.