Just-validate
Just-validate copied to clipboard
Can't accept input type different from "text"
If I use an input type "number" with this validation rules:
.addField("#myinput", [ { "rule": "required", }, { "rule": "number" } ],
the rule "number" does not work. If I try to insert "abc" the error message is "input required" and not "only numbers allowed"
If I change type number in text all runs smoothly