button id . bind and unbind in js code example Example: jquery clear click event $( "#foo" ).unbind("click");