22 lines
561 B
JavaScript
22 lines
561 B
JavaScript
/* Reset real moodle inputs to try in real env */
|
|
for (const option of document.querySelectorAll("option")) {
|
|
option.selected = false;
|
|
option.disabled = false;
|
|
option.closest("select").disabled = false;
|
|
}
|
|
|
|
for (const input of document.querySelectorAll(
|
|
'input[type="radio"], input[type="checkbox"]'
|
|
)) {
|
|
input.checked = false;
|
|
input.disabled = false;
|
|
}
|
|
|
|
for (const icon of document.querySelectorAll(".text-danger, .text-success")) {
|
|
icon.remove();
|
|
}
|
|
|
|
for (const feedback of document.querySelectorAll(".specificfeedback")) {
|
|
feedback.remove();
|
|
}
|