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