codeGK
Code it ALL
jQuery hover() - CodeGK

♦ jQuery hover()

♣ Example5: jQuery hover()

The hover() method is used, when we need a action to be performed upon a mouse hovering an HTML element region.
In this case the action will be performed until the mouse cursor stays on the HTML element region.
Below is the representation of hover() Syntax.
Basic Syntax
$(selector).hover(function(){
//code_block
})
Syntax Explanation:
selector : element selector for event to be performed
code_block : code for execution, which will execute when event is performed
In this example, .
Example
Input:
Output:
Events