diff --git a/js/validator.js b/js/validator.js index 17f40ff..de9ba55 100644 --- a/js/validator.js +++ b/js/validator.js @@ -169,7 +169,8 @@ } $.each(Validator.VALIDATORS, $.proxy(function (key, validator) { - if ((getValue($el) || $el.attr('required')) && + var value = getValue($el); + if ((value == '' || value || $el.attr('required')) && ($el.data(key) || key == 'native') && !validator.call(this, $el)) { var error = getErrorMessage(key)