When setting options via HTML attributes, remember to enable the validator by setting data-fv-emailaddress="true".
You don't need to do that when using HTML 5 type="email" attribute.
The message and other options can be updated on the fly via the updateMessage() and updateOption() methods
This validator passes an empty field since the field might be optional. If the field is required, then use the notEmpty validator.
|