OT: JavaScript onSubmit

2005-01-26 Thread Robert Orlini
I have a JavaScript question. How can I combine these two validation scripts? I need it to do a return confirm and also a validation to make sure the proper field is selected. I'm trying to combine the onSubmit of onsubmit=return checkUserInputs(this); and onSubmit=return verify. SEE BELOW CODE

Re: OT: JavaScript onSubmit

2005-01-26 Thread Claude Schneegans
I'm trying to combine the onSubmit of onsubmit=return checkUserInputs(this); and onSubmit=return verify() Try this: return checkUserInputs(this) return verify(); If the two functions are not used independently anywhere else, you could also just merge them into one unique function verify():

Re: OT: JavaScript onSubmit

2005-01-26 Thread Qasim Rasheed
Have you tried using this SCRIPT LANGUAGE=JAVASCRIPT function checkUserInputs(form) { // One of the trials must be selected. if(form.name.options[0].selected) { alert(Please select a trial.); return false; } verify(); } /script On Wed, 26 Jan