The most important aspects that deals with events via jQuery is blind() method. From the name itself, it is used to attach one or more events on a set of elements. It is a method specifies a function to run while the event occurs. This method will be used together with other events.

Syntax for bind() method


The parameters of bind() methods are event, data, function and map. Here, event and data parameters are mandatory.

Example of jquery bind()

<!DOCTYPE html>
<script src=""></script>
  $("p").bind("click", function(){
    alert("Given paragraph was clicked.");
<p>Click me!</p>

Leave a Reply

Your email address will not be published. Required fields are marked *