lakeside12
Programmer
Hello
I have a form and it has a submit button as follows
<a href="javascript:document.forms[0].submit()"> ... url >
Is there a way to do a test on 2 form fields when the consumer clicks or hovers the mouse over the button, without leaving the form to process all the information.
I want to test 2 fields, one called Zipcode the other FName and I just want to make sure zip code has 5 numbers in it and Name is longer than 1 character. I just want a popup OK box that tells them to fill in the fields.
I would appreciate help on this as I am a novice at javascript
many thanks
I have a form and it has a submit button as follows
<a href="javascript:document.forms[0].submit()"> ... url >
Is there a way to do a test on 2 form fields when the consumer clicks or hovers the mouse over the button, without leaving the form to process all the information.
I want to test 2 fields, one called Zipcode the other FName and I just want to make sure zip code has 5 numbers in it and Name is longer than 1 character. I just want a popup OK box that tells them to fill in the fields.
I would appreciate help on this as I am a novice at javascript
many thanks