Click to See Complete Forum and Search --> : Onclick and onsubmit event


boolean01
12-11-2003, 06:36 AM
I have a script that ensures that the email address field has been filled out and is valid, and is an 'onsubmit' action. I also have a script that stops the user from submitting the form multiple times, which is run via the 'onclick' event. By themselves these run fine, but when used together neither work. Why would this be?

TheBearMay
12-11-2003, 07:44 AM
Possibilities are endless, is there somewhere we can see the code?

requestcode
12-11-2003, 07:45 AM
Not sure why, but why not run them both off of the onSubmit event? If we could see your code we might be able to help you further.

ray326
12-11-2003, 11:53 AM
I'd roll it all into the onclick handler and submit from there if everything checks out. Oh, make sure your button is a "button" not a "submit".