diff --git a/app.js b/app.js index c63dabb..fdba390 100644 --- a/app.js +++ b/app.js @@ -159,12 +159,14 @@ confirmButton.addEventListener('click', function() { } if ((inputMonth.value.length === 0) || (inputYear.value.length === 0)) { mounthYearError.style.display = "block"; + mounthYearError.textContent = "Can't be blank"; isError = true; }else { mounthYearError.style.display = "none"; } if (inputCVC.value.length === 0) { cardCvcError.style.display = "block"; + cardCvcError.textContent = "Can't be blank"; isError = true; }else { cardCvcError.style.display = "none"; diff --git a/index.html b/index.html index e8eb39c..41e86e3 100644 --- a/index.html +++ b/index.html @@ -63,18 +63,17 @@
-

Wrong format, number only

-

Can't be blank

+

-

Can't be blank

+

-

Can't be blank

+