Javascript: email address and password validation

Our goal is to prepare a validation library that is reusable and extensible. We don't want to have to change the validation function every time we start a new project, nor do we want to have to write everything over again. We want a framework for our validation that is easy to use.

Previously we developed a function (Validate()) that iterates through the form from which it is called. This function looks for a validation identifier which we attach to any form element.

in this tutorial (which can be used as a stand alone tutorial as well as part of the series) we examine validating an email address format and a password format

$2.79
- OR -

Overview

Table of Content:

  • The Form
  • isPassword Method
  • Setting isValid
  • isEmail - Validate an Email Address
  • Variable Scope Problem
  • Conclusion

Reviews

Be the first to write a review

You must me logged in to write a review.