1. In JQuery , there are two methods for event switching, one method is hover() and the other is toggle(). The so-called switching event means that two or more events are bound to an element to switch between the behaviors of the element. For example, if a hyperlink tag wants to trigger an event when the mouse is hovering, and another event when the mouse is moved out, it can be easily achieved by using a switch event.
2. Sample code :
When the mouse moves to the JQuery introduction: