Syntax

Basic Example

In the following jQuery example, the live() method adds the click event to the element with an id of imgMouse. When the imgMouse element is clicked, the click event is executed through the live method. In this example, the div element will be shown or hidden as the mouse icon is clicked.