prevent functions associated with id jquery code example
Example: 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", "**" );