W
W.Sh
Hello Dear Javascript Experts!
I really suck at Javascript at the moment, and I could really use some
assistance...
I have an HTML form, and I'm using javascript to validate the various
entries. Now, I have most of the basic validation figured out, but
there's one input field which requires very strict validation. That
field is the "Address" field.
Besides the obvious checking of whether or not the field is empty, I
also have to make sure that it contains both letters AND numbers, so
that the Street's number isn't left out. Also, I need to make sure that
it is in fact a Street Address, and not a P.O.Box... So the script must
also check to see that the input field does not contain the words
"P.O.Box"...
To sum it up:
1. Field must contain both letters and numbers
2. Field must NOT contain the expression "P.O.Box" (or "p.o.box"..
"PO.Box"... etc)
Any code samples you can provide will be greatly appreciated!!!!!!
Thanks for your time and help!
W.Sh
I really suck at Javascript at the moment, and I could really use some
assistance...
I have an HTML form, and I'm using javascript to validate the various
entries. Now, I have most of the basic validation figured out, but
there's one input field which requires very strict validation. That
field is the "Address" field.
Besides the obvious checking of whether or not the field is empty, I
also have to make sure that it contains both letters AND numbers, so
that the Street's number isn't left out. Also, I need to make sure that
it is in fact a Street Address, and not a P.O.Box... So the script must
also check to see that the input field does not contain the words
"P.O.Box"...
To sum it up:
1. Field must contain both letters and numbers
2. Field must NOT contain the expression "P.O.Box" (or "p.o.box"..
"PO.Box"... etc)
Any code samples you can provide will be greatly appreciated!!!!!!
Thanks for your time and help!
W.Sh