This site contains the document for old version. Please upgrade to the latest version v1.0.0

digits validator

Return true if the value contains only digits



Option HTML attribute Type Description
message data-fv-digits-message String The error message
When setting options via HTML attributes, remember to enable the validator by setting data-fv-digits="true".
The message option can be updated on the fly via the updateMessage() method

Related validators

The following validators might be useful to you: