This script is a combination of a lot of common form validation elements - checking for non-entries, image swaping to indicate invalid entries, focusing on invalid fields, and feedback to the user through an alert box. I got tired of writing new code for every form (or even cutting and pasting a lot) so this is intended as a .js include file, and all the information necessary to validate the form is contained in the form itself. Most validation is of the did-they-fill-it-in variety. See the comments in the script for more details. Additional validation can be performed with a customized object-oriented JavaScript function. Explanations and an example are provided in the comments.
File List:
errorCheck.js
22Kb
Similar code
A good email validation
(Popularity: ) : Here is a script that checks for the validity of email, avoiding invalid characters, position of @ and . dot ... A - Z Form Validator
(Popularity: ) : Validating the form elements
Easy Query String
(Popularity: ) : This little html document reads value from the Query String to be used in javascripts. I made this script for ... Check Fiscal Code 1.0 (ITALIAN)
(Popularity: ) : It checks the validity of last char in fiscal code string that is a control char calculated by an algorithm. ... Enter keys instead of Tab Keys
(Popularity: ) : Feel painless with inputing data at your HTML form ?? this script let you use enter keys instead of tab ...