blob: 920bf9822c91dd0280111fbe47f498c9b4b86378 [file] [log] [blame]
document.addEventListener("DOMContentLoaded", _ => {
document.querySelectorAll("select").forEach(el => {
el.addEventListener("change", _ => {
el.setAttribute("data-value", el.value);
});
el.setAttribute("data-value", el.value);
});
});