We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3597fce commit 69b2ef1Copy full SHA for 69b2ef1
form-validator/jquery.form-validator.js
@@ -126,6 +126,12 @@
126
.addClass('valid')
127
.parent()
128
.addClass('has-success'); // twitter bs
129
+ } else if(validation === null) {
130
+ $element
131
+ .removeClass('valid')
132
+ .parent()
133
+ .removeClass('has-error')
134
+ .removeClass('has-success');
135
} else {
136
$element
137
.addClass(config.errorElementClass)
@@ -698,7 +704,7 @@
698
704
// if empty AND optional attribute is present
699
705
// OR depending on a checkbox being checked AND checkbox is checked, return true
700
706
if ((!value && optional === 'true') || (validationDependsOnCheckedInput && !validationDependentInputIsChecked)) {
701
- return true;
707
+ return null;
702
708
}
703
709
710
var validationRules = $element.attr(config.validationRuleAttribute),
0 commit comments