91-9990449935 0120-4256464 |
jQuery mouseenter()The mouseenter() method adds an event handler function to an HTML element. This function is executed, when the mouse pointer enters the HTML element. When you enter your mouse cursor over the selected element, it triggers the mouseenter event and once the mouseenter event is occurred, it executes the mouseenter() method to attach the event handler function to run. This event is generally used together with mouseleave() event. Syntax: It triggers the mouseenter event for selected elements. It adds a function to the mouseenter event. Parameters of jQuery mouseenter() event
Example of jQuery mouseenter() eventLet's take an example to demonstrate jQuery mouseenter() event. Test it NowOutput: Enter this heading.jQuery mouseenter() event example 2Let's see another example of jQuery mouseenter() event. Test it NowOutput: Move your mouse cursor over this statement.
Next TopicjQuery mouseleave()
|