diff --git a/public/index.html b/public/index.html index a15e364008310d30a6ecc160d7ede1c3cff92e1b..f48cfe9efa3d1249cb91391969e05d1636d070d3 100644 --- a/public/index.html +++ b/public/index.html @@ -77,7 +77,7 @@ <option value="3">Good-ability group</option> <option value="4">Average-ability group</option> <option value="5">Low-ability group</option> - + </select> <div id="category-validation" class="error-message">Please select the category.</div> </div> diff --git a/public/index.js b/public/index.js index 65ee9bcafe4801d474508f79e6e703f5136b2fe5..c925bef5a2c878d5d017f37d604c5f30edd397d1 100644 --- a/public/index.js +++ b/public/index.js @@ -87,7 +87,7 @@ function isFormValid() { document.getElementById('schoolLevel-validation').style.display = 'none'; } - if (inputObj.category === ''|| inputObj.category === 0) { + if (inputObj.category === '' || inputObj.category === 0) { invalidFields++; document.getElementById('category-validation').style.display = 'block'; } else {