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

example of problem

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -