• Basics
  • Validation
Search »

Adding JS validation to your forms

The Form Tools download file includes a number of external scripts, including the Really Simple Validation javascript library. This small but powerful script lets you add javascript validation to your forms quickly and with very little effort.

One of the nicer features of the script is that it goes hand in hand with a sister script - the PHP Validation script which works very similarly. You can almost literally copy and paste your rules from one to the other - saving precious time. Other features include its wide support for most of the common validation rules, plus it's fully extensible to allow programmers to augment the built-in validation rules with their own.

This tutorial explains the basics on how to add JS validation to a form. The tutorial does not exhaustively explore all the feature of the script. Visit the website for more information than you find here.