diff options
Diffstat (limited to 'poll/public')
-rw-r--r-- | poll/public/script.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poll/public/script.js b/poll/public/script.js index 09f8c93..5cca71a 100644 --- a/poll/public/script.js +++ b/poll/public/script.js @@ -7,7 +7,9 @@ if (!["teacher", "pupil"].includes(type)) window.location.href = "/"; dropdown.insertAdjacentHTML( "beforeend", - '<option selected="true" disabled>' + (type == "teacher" ? "Lehrer" : "Schüler") + "/in auswählen...</option>", + '<option value="" selected="true" disabled>' + + (type == "teacher" ? "Lehrer" : "Schüler") + + "/in auswählen...</option>", ); document.querySelector("legend").innerText = type == "teacher" ? "Lehrer-Ranking" : "Schüler-Ranking"; document.querySelector("p").innerText = "Welche/r " + (type == "teacher" ? "Lehrer/in" : "Schüler/in") + "..."; |