validation.js

Creates restricted input controls.

Functions

OAT.Validation.create(element, type, options)

Restricts input element. Restriction type is an OAT.Validation.TYPE_ constant. Options may consist of:

Constants

OAT.Validation.TYPE_

Example


var i = OAT.Dom.create("input");
OAT.Validation.create(i, OAT.Validation.TYPE_LETTERS,   // 3-10 chars, 
                      {min:3, max:10, def:"_"});        // default '___'

CategoryDocumentation CategoryOAT CategoryOpenSource CategoryToBeDone?