Discussion Locked

Form validation

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a form that currently has Dreamweaver validation on the text fields. But now I want to validat additional drop down boxes in the same field. I have tried using code such as:

Does anyone have any suggestions???

1 reply

by lukepronker

Looking at your JavaScript, your "if" conditionals read "if the value of the input 'CardType' does not equal '*', then returnVal = true." I think you just put your thoughts down wrong. I think what you are trying to say is "if there is no value in'CardType', THEN perform these functions."
The JavaScript for that would be:
if(!document.form1.CardType.value) {
function .....
doing(stuff);
}

I dont know if that's what you were trying to do... but if you want, I made a contact form that uses a bunch of JavaScript to validate it before you send it... it's at : http://www.geocities.com/superbhome
then click on "contact" on the side bar.

This discussion is closed to new replies.