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
Student Registration System
(Popularity: ) : This program is what i have to created on a College Class for Univeristy of Nebraska for my first semester in Java Class. This works as a registration system and a student information. 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 keys. as default HTML form used tab keys to change between one form element (such us input box) to another ... 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. main function is "checkFiscCode" this is a first version that I've posted Remember it checks the sintax of fiscal code ... A good email validation
(Popularity: ) : Here is a script that checks for the validity of email, avoiding invalid characters, position of @ and . dot and domian name is checked for the well known domains such as .com, .net or else and restricts the user ... Windows Password Tester
(Popularity: ) : This a password field validation code using Javascript Regular Expressions. It test to esure that a password meets the so-called Complex Password required in Windows and other OS. It helps the user to test a desired password against criteria such ... 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 a friend who needed a way to get query string value from forms using javascript, without having to worry about ...