what is bind() method in javascript?



you can attach one or more event handlers using bind() on any selected element that will be reference. example:

$("p").bind("click", function(){
alert("clicked.");
});