Options
Option | HTML attribute | Type | Description |
---|---|---|---|
case |
data-fv-stringcase-case |
String | Can be lower default or upper
|
message |
data-fv-stringcase-message |
String | The error message |
When setting options via HTML attributes, remember to
enable the validator by setting data-fv-stringcase="true".
The message and other options can be updated on the
fly via the updateMessage() and updateOption() methods
Example
The following form asks user to enter a credit card holder in uppercase: