mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
Revert to also converting parameters of range method to numbers. Closes gh-702
Unlike min/max, there's no range attribute in html5. For dates, min/max can be used.
This commit is contained in:
2
jquery.validate.js
vendored
2
jquery.validate.js
vendored
@@ -940,7 +940,7 @@ $.extend($.validator, {
|
||||
rules[this] = Number(rules[this]);
|
||||
}
|
||||
});
|
||||
$.each(['rangelength'], function() {
|
||||
$.each(['rangelength', 'range'], function() {
|
||||
var parts;
|
||||
if ( rules[this] ) {
|
||||
if ( $.isArray(rules[this]) ) {
|
||||
|
||||
Reference in New Issue
Block a user