Define click event in jQuery in brief.

The click event occurs when an element of HTML document is clicked. For example, clicking a button, a paragraph, a Div, a link or an image etc. As the click event occurs, an event handler can be attached to perform some action with click jQuery method.

Following is the syntax of jQuery click:
$(selector).click(function)
Where click function is optional. The function runs as the click event occurs.
Examples of how this event can be applied to different elements.
$("p").click(function)
$("div").click(function)
$("button").click(function)
Note:You can use click method by element ID or class name as well.

Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*