Skip to content

Instantly share code, notes, and snippets.

@octo-kumo
Created December 11, 2022 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save octo-kumo/490e6f2c18ca88de77c68fb09d91092e to your computer and use it in GitHub Desktop.
Save octo-kumo/490e6f2c18ca88de77c68fb09d91092e to your computer and use it in GitHub Desktop.
mini-ielts empty select fix script
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