Validator
Functions
- isAlphaNumeric verifies that a character from an event is a letter or a number(event)
- isEmail verifies that a string is an email address(email)
- isPhone verifies that a string is a phone number http://stackoverflow.com/questions/4338267/validate-phone-number-with-javascript(phone)
- optional Converts a validator function into optional by allowing v == null or an empty string to return true(validator)
isAlphaNumeric verifies that a character from an event is a letter or a number(event)
Kind: global function
Param | Type | Description |
---|---|---|
event | object | key board event |
isEmail verifies that a string is an email address(email)
Kind: global function
Param | Type | Description |
---|---|---|
string | email to be validated |
isPhone verifies that a string is a phone number
http://stackoverflow.com/questions/4338267/validate-phone-number-with-javascript(phone) Kind: global function
Param | Type | Description |
---|---|---|
phone | string | phone number to be validated |
optional Converts a validator function into optional by allowing v == null or an empty string to return true(validator)
Kind: global function
Param | Type | Description |
---|---|---|
validator | function | validator to be changed to allow null |