unregister click event jquery code example
Example 1: jquery clear click event
$( "#foo" ).unbind("click");
Example 2: jquery remove keypress event
$('#foo').unbind("keypress");
$( "#foo" ).unbind("click");
$('#foo').unbind("keypress");