Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image disabling upon condition

    Hello,
    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...

  • #2
    New Coder
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you post the js functions your calling and your form in code tags please. They should help sort this out.
    Richard Palmer
    Web Developer,
    Indiana Data Center.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •