jquery click event stop propagation code example
Example 1: event .stoppropagation
event.stopPropagation();
Example 2: jquery prevent event bubbling
$('myclass').bind('amodaldestroy'), function(event) {
....does something....
event.stopPropagation();
});