From 08addb6a6c4b41e646e454f2a9ef9cfa61fc1ada Mon Sep 17 00:00:00 2001 From: Ratnadeep Rajendra Kharade <92khra1mst@hft-stuttgart.de> Date: Thu, 29 Oct 2020 19:05:41 +0100 Subject: [PATCH] formatted code --- public/index.html | 2 +- public/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index a15e364..f48cfe9 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 65ee9bc..c925bef 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 { -- GitLab