View Full Version : Image disabling upon condition

11-21-2006, 02:27 PM
I have a jsp page which has an image, which when clicked, does some operation. In the same page, there is a checkbox which when checked should disable the image. All these elements are contained in a form. When the checkbox is checked, im able to disable the image, but immediately the form is being submitted. I do not want the form to be submitted bcoz there are other form elements which needs to be filled in and validated before submit. Why is the form being submitted when the image is clicked?

Kindly help...

11-21-2006, 02:31 PM
Can you post the js functions your calling and your form in code tags please. They should help sort this out.