How to stop click event for entire form in jqery code example
Example 1: jquery prevent event bubbling
$('myclass').bind('amodaldestroy'), function(event) {
....does something....
event.stopPropagation();
});
Example 2: 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", "**" );