
November 30th, 2001, 03:15 PM
|
|
Junior Member
|
|
Join Date: Nov 2001
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
JavaScript: Form field error checking
I have a page which contains an HTML form. When the user clicks the submit button, I want to check to make sure that all of the form fields have been filled in. I also want to check that certain fields contain no letters, that certain fields contain no numbers, and that the email field is in the form a@b.c If there is a problem, a box should pop up asking the user to fix the problems. If everything is fine, things should continue normally (as if there was no javascript). How can I do this?
|