Class: Field

JSValidator. Field

new Field(fieldElements, validator)

Parameters:
Name Type Description
fieldElements All the html fields elements that match the current Field name
validator JSValidator The current validator
Properties:
Name Type Description
name String Field html name
tagName String Field html tag name
type String Field html type
fieldElements Array all the html fields fot the current field name
Source:

Classes

FieldActions

Methods

bindValidationToEvent(type) → {JSValidator.Field.FieldActions}

Field API: Bind the current field validation to an event
Parameters:
Name Type Description
type String Event type (keypress, keyup, change, etc.)
Source:
Returns:
Type
JSValidator.Field.FieldActions