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
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():
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
3 matches
Mail list logo