jquery unbind all events code example
Example 1: jquery clear click event
$( "#foo" ).unbind("click");
Example 2: jquery remove keypress event
$('#foo').unbind("keypress");
Example 3: remove add event listener jquery
//Remove all event handlers from all paragraphs:
$( "p" ).off();
//Remove all delegated click handlers from all paragraphs:
$( "p" ).off( "click", "**" );