Skip to content

Commit 10d9052

Browse files
jcbowmanjzaefferer
authored andcommitted
Revert to also converting parameters of range method to numbers. Closes jquery-validationgh-702
Unlike min/max, there's no range attribute in html5. For dates, min/max can be used.
1 parent 8250adb commit 10d9052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ $.extend($.validator, {
940940
rules[this] = Number(rules[this]);
941941
}
942942
});
943-
$.each(['rangelength'], function() {
943+
$.each(['rangelength', 'range'], function() {
944944
var parts;
945945
if ( rules[this] ) {
946946
if ( $.isArray(rules[this]) ) {

0 commit comments

Comments
 (0)