v0.5.3 is released on 2014.11.05!
greaterThan validator
Return true if the value is greater than or equals to given number
Improve it on GithubOptions
Option | HTML attribute | Type | Description |
---|---|---|---|
inclusive |
data-bv-greaterthan-inclusive |
Boolean | Can be true or false .If true , the input value must be greater than or equal to the comparison one.If false , the input value must be greater than the comparison one |
message |
data-bv-greaterthan-message |
String | The error message |
value * |
data-bv-greaterthan-value |
Float | The number to make a comparison to. It's a dynamic option |
When setting options via HTML attributes, remember to enable the validator by setting data-bv-greaterthan="true".
You don't need to do that when using HTML 5 min="..." attribute.
You don't need to do that when using HTML 5 min="..." attribute.
Related validators
The following validators might be useful to you: