Browse Source

clearing error

v1
Jon Lambson 7 years ago
parent
commit
1642251cb7
  1. 7
      js/script.js

7
js/script.js

@ -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('####-####-####');

Loading…
Cancel
Save