javascript - Mouse Click Triggering Event of Element below Form being clicked -
i have submit button (form) hovering on image thumbnail allows user delete image seen below
the thumbnail (img element) has onclick event triggers popup displaying image in full size. unfortunately, when click 'x' button (submit form), onclick event thumbnail image below gets triggered user shown popup before page redirected. how can prevent this?
additional info
the css button so:
.delete_image_button { position: absolute; top: 0px; right: 0px; z-index: 1; }
you can use jquery stop propagation function , prevents events bubling
Comments
Post a Comment