From c588ea7d3d7a205070e803a9e50e7aa1cab99734 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Tue, 11 Jul 2017 16:29:07 -0600 Subject: [PATCH] fixing disabled --- js/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 1a5c63c..ab84331 100644 --- a/js/script.js +++ b/js/script.js @@ -92,8 +92,9 @@ $('body').on('keyup keypress', '.js-authn-otp-code', function (e) { // } if ($(this).val().length === 14) { $('.submit-btn').prop('disabled', false); + } else { + $('.submit-btn').prop('disabled', true); } - }); $('.js-authn-otp-code').mask('####-####-####');