I have an image and a check box placed inside a div.
There are two different events of click in it. One is :
- When I click the check-box the check-box should be selected(checked) and the other is
- When I click the image a light-box should appear.
What happening is; when I click the image, the light-box appear but when I click the check-box, again the light-box is appearing.
<div class="divWrap">
<div class="imageWrap">
<img src="abc.jpg">
<div id="checkbox">
<input type="checkbox" value="None" id="checkbox1" name="check1" />
</div>
</div>
</div>
I am not able to code it properly in jQuery.
Can anyone help?
1 Answer