Click event inside form, submits the form

Hi,

I am using a form, where an image is placed (i.e) when we click the image a popover will rise.

My Problem:

When the image is clicked the form gets submitted. I don’t understand why is this happening. Also unable to differentiate the problem is with the popover or the click event inside a form.

My Sample Code: