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

@@ -213,6 +213,7 @@ import Layout from "../../layouts/Layout.astro";
element.classList.add('redBorder');
}
} else {
wrongCount -= 1;
element.classList.remove('greenBorder', 'redBorder');
}
}
@@ -221,7 +222,7 @@ import Layout from "../../layouts/Layout.astro";
document.getElementById('allParentDiv').style.display = 'block';
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";