Lightweight JavaScript Form Validator


This project is currently in setup mode and only available to project coordinators and developers. Once you have finished setting up your project you can publis


This project is currently in setup mode and only available to project coordinators and developers. Once you have finished setting up your project you can publish it to make it available to all CodePlex visitors.

I wrote a very simple, super lightweight javascript form validator, currently it has support to do validation for following.

- Require Field
- Min Letters
- Max Letters
- Validation based upon a custom Function (RegEx etc)

With the support of Function based validation, I can pretty much validate anything, function returns true/false and if false then it returns the error message.


Summary:
User Attaches the Form Input fields with the Validation Object, specifies the error message and library does the rest.

Please Note: jQuery is required for this to work at this time.

I would like to add more features to validator, such as Number based validation, ssn, email etc.


Usage Example:

name: {
controlID: "#txt_name",
message: "name is required"
}

will make txt_name field required.


Additional information on starting a new project is available here: Project Startup Guide.