jQuery hover() method

jQuery hover() method


Use the jQuery hover() method, to hover over a matched element and call two functions, one for mouseenter and another for mouseleave.


The following is the syntax,

The following are the parameters,

  • enterFunction: Function to run when the mouseenter event occurs. This is a required parameter.
  • leaveFunction: Function to run when the mouseleave event occurs. This is an optional parameter.


The following is the output,

Hover over the heading to change its color. The color will change to blue,

jQuery focusout() method
jQuery keydown() method
Studyopedia Editorial Staff
Studyopedia Editorial Staff

We work to create free tutorials for all.

No Comments

Post A Comment