blob: 920bf9822c91dd0280111fbe47f498c9b4b86378 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001document.addEventListener("DOMContentLoaded", _ => {
2 document.querySelectorAll("select").forEach(el => {
3 el.addEventListener("change", _ => {
4 el.setAttribute("data-value", el.value);
5 });
6 el.setAttribute("data-value", el.value);
7 });
8});