DIsable submit button when clicked

This commit is contained in:
2025-01-04 17:14:53 +01:00
parent 9b2daca0e6
commit adddec5617
+8
View File
@@ -67,6 +67,12 @@
cursor: pointer;
}
#submit-btn:disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
}
#submit-btn:hover {
background-color: #45a049;
}
@@ -166,6 +172,8 @@
return;
}
submitBtn.disabled = true;
const days = calendar.children;
const choices = Array.from(days).map(day =>
Array.from(day.children)