Blog Detail

Bind Unbind event in JQuery

22 Nov 10
admin
No Comments
Hai,

We can bind an event using .bind() methode of JQuery.

For example:
$(“#buttonId”).bind(‘onclick’, functionName);
or
$(‘#buttonId).bind(‘click’, function() {
alert(‘User clicked’);
});

Unbinding is done by using .unbind()

Example:

$(“#buttonId”).unbind(‘onclick’);

Happy Programing…

Leave A Comment