{name: "myEmailField", type: "email", message: "Enter a valid email"},
{name: "myEmailField", type: "regex", pattern: /hotmail.com/, message: "Hotmail
not allowed"},
{name: "myEmailField", type: "regex", pattern: /\s/, message: "No white-space
allowed"}
The field would be validated three times. Although three message could appear
at once if all tests fail ;o)
To get round this use a type:"custom" test and write a custom function to test
the field.
Jake
So your "fields" array could contain:
{name: "myEmailField", type: "email", message: "Enter a valid email"}, {name: "myEmailField", type: "regex", pattern: /hotmail.com/, message: "Hotmail not allowed"}, {name: "myEmailField", type: "regex", pattern: /\s/, message: "No white-space allowed"}
The field would be validated three times. Although three message could appear at once if all tests fail ;o) To get round this use a type:"custom" test and write a custom function to test the field. Jake