We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf263a commit ab8ffcaCopy full SHA for ab8ffca
scripts.js
@@ -103,7 +103,7 @@ function validateForm(event) {
103
} else {
104
nameErr.style.display = 'none';
105
}
106
- if (numberInput.value === '' || numberInput.value <= 0) {
+ if (numberInput.value === '' || numberInput.value.match(/[^1-9]/) || numberInput.value <= 0) {
107
numberErr.style.display = 'block';
108
109
numberErr.style.display = 'none';
0 commit comments