v0.5.3 is released on 2014.11.05!

lessThan validator

Return true if the value is less than or equals to given number

Validators

Improve it on Github

Options

Option HTML attribute Type Description
inclusive data-bv-lessthan-inclusive Boolean Can be true or false.
If true, the input value must be less than or equal to the comparison one.
If false, the input value must be less than the comparison one
message data-bv-lessthan-message String The error message
value* data-bv-lessthan-value Float The number to make a comparison to.
It's dynamic option
When setting options via HTML attributes, remember to enable the validator by setting data-bv-lessthan="true".
You don't need to do that when using HTML 5 max="..." attribute.

Related validators

The following validators might be useful to you: