reesecup09
asked on
Javascript to check for a blank form
Hi - I have an online employment application form that I uses CGI script to send the data to my email. I do not want a blank form to get submitted. I need some simple javascript that can check to see if all fields are empty and if so not to submit the form. A window can pop up saying something like the form has not been completed. What is the best way to achieve this? Thank you.
ASKER
Is there a way to check for a completely blank form instead of an individual field?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check this for detailed explanation:
http://www.quirksmode.org/js/formex.html
http://www.quirksmode.org/js/forms.html
http://www.quirksmode.org/js/formex.html
http://www.quirksmode.org/js/forms.html
ASKER
Will this check to see if no field has been completed?
yes... check the tutorial for more understanding.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
http://www.thesitewizard.com/archive/validation.shtml
http://homepage.ntlworld.com/kayseycarvey/JavascriptForms.html