This commit is contained in:
Suvodip
2024-10-03 13:33:08 +05:30
parent 2e342cd642
commit aff599a883
11 changed files with 22 additions and 11 deletions

View File

@@ -202,6 +202,7 @@ import Layout from "../../layouts/Layout.astro";
wrongCount +=1;
}
} else {
wrongCount -= 1;
element.classList.remove('redBorder', 'greenBorder');
}
}
@@ -211,7 +212,7 @@ import Layout from "../../layouts/Layout.astro";
const checkboxes = ['a1', 'a2', 'a3', 'a4', 'a5', 'a6'];
const checkedCount = checkboxes.filter(id => document.getElementById(id).checked).length;
if (checkedCount < 0) {
if (checkedCount < 1) {
// Show error message if less than 3 checkboxes are checked
let errorMessageSection = document.getElementById('errorMessage');
errorMessageSection.style.display = "block";