how to clear all previous click handlers on a button in jquery code example Example: jquery clear click event $( "#foo" ).unbind("click");