Skip to main content

minNumber

Number should be more than defined value.

const validator = new JustValidate('#form');

validator.addField('#number', [
{
rule: 'minNumber',
value: 5,
},
]);
caution

Please note, the rule doesn't trigger the validation error if the field is empty. If you want to make it required you should also add required rule

Demo