Created
December 11, 2022 12:55
-
-
Save octo-kumo/490e6f2c18ca88de77c68fb09d91092e to your computer and use it in GitHub Desktop.
mini-ielts empty select fix script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll(".exam-section select").forEach(function insertOptions(el) { | |
for (let i = 0; i < 10; i++) { | |
var opt = document.createElement('option'); | |
opt.value = String.fromCharCode(65 + i); | |
opt.innerHTML = String.fromCharCode(65 + i); | |
el.appendChild(opt); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment