diff --git a/reset-moodle-inputs/reset.js b/reset-moodle-inputs/reset.js index 6d5d10a..5f0cf3d 100644 --- a/reset-moodle-inputs/reset.js +++ b/reset-moodle-inputs/reset.js @@ -2,12 +2,15 @@ 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")) {