DIsable submit button when clicked
This commit is contained in:
@@ -66,6 +66,12 @@
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#submit-btn:disabled {
|
||||||
|
background-color: #ccc;
|
||||||
|
color: #666;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
#submit-btn:hover {
|
#submit-btn:hover {
|
||||||
background-color: #45a049;
|
background-color: #45a049;
|
||||||
@@ -166,6 +172,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
submitBtn.disabled = true;
|
||||||
|
|
||||||
const days = calendar.children;
|
const days = calendar.children;
|
||||||
const choices = Array.from(days).map(day =>
|
const choices = Array.from(days).map(day =>
|
||||||
Array.from(day.children)
|
Array.from(day.children)
|
||||||
|
|||||||
Reference in New Issue
Block a user