I have an image and I want to check a checkbox when a user clicks the image. This works fine in all browsers as long as I'm not within a form element. If I'm within a form element in IE, clicking the image doesn't check the box. The fiddle is http://ift.tt/1P2MDYY
In the fiddle, Check 1 is outside the form element and works fine for all browsers. Check 2 is inside the form element and does not work for IE but does work for the other browsers. **If you're viewing the fiddle in IE, Check 2 will not check on the image click. If you're viewing the fiddle in all other browsers it works fine.
What do I need to do to make this work for IE? Below is my HTML. Any help would be greatly appreciated!
Aucun commentaire:
Enregistrer un commentaire