Javascript Validation Helper

Simple validation helper

This is a very simple client side validation helper that I have written, because I prefer writing any HTML forms validation on my own instead of using any out-of-the-box solutions.

This project is supposed to work in cooperation with any Javascript framework available. The general idea is very simple - I want to retrieve a value using, for example jQuery and then perform a check with the validation helper if a given value matches specified criteria. This way I can fully control the whole validation process and, if necessary, apply some customization magic. The form validation code should take no more than 5 minutes to write. Depending on the size of form of course ;)

Sample usage:

var username = $("#Username").val();
if(Validation.IsNullOrWhitespace(username))
{
    DisplayError("Username cannot be empty!");
}

You can download this simple project

current version: 1.0.0