clearing error

这个提交包含在:
Jon Lambson 2017-07-12 10:26:53 -06:00
父节点 1d02c1d424
当前提交 1642251cb7
共有 1 个文件被更改,包括 6 次插入1 次删除

查看文件

@ -90,7 +90,12 @@ $('body').on('keyup keypress', '.js-authn-otp-code', function (e) {
// if($(this).val().length === $(this).attr("maxlength")){
// $('.submit-btn').prop("disabled", false);
// }
$(this).val().length === 14 ? $('.submit-btn').prop('disabled', false) : $('.submit-btn').prop('disabled', true);
if ($(this).val().length === 14) {
$('.submit-btn').prop('disabled', false);
$('.error-msg').empty();
} else {
$('.submit-btn').prop('disabled', true);
}
});
$('.js-authn-otp-code').mask('####-####-####');