First… I am not uploading my script because it is long and complex and I don’t think it will help anyway. My validation works fine I just hate it. I use the same ole boring method I always have (annoying alerts… one at a time).
I’m am searching (with no luck) for a sample script showing how to validate a form in a specific way.
I want to have a few required fields on each form, once the user clicks on Submit, if these fields have not been filled in they should not get an alert, rather they should see the field names highlighted in red(or whatever) and a little message at the top/bottom of the form letting them know they forgot to fill in some required fields.
The part I’m having the most trouble with is how to have the errors returned all at once. The user should only have to click on Submit once to be shown 6 different errors, not fix one and then submit only to find there is another… and another… etc.
You get my point.
Anyway… if anyone knows of a sample I could look at and figure out how it works I would be most appreciative.
Thanks!
-peacefroggie
ps – sorry if the answer to this has already been posted, I went through 30 pages of posts and didn’t find what I was looking for (lots of other goodies though!)