diff --git a/scripts/config.js b/scripts/config.js index ba81251..8155971 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -46,12 +46,14 @@ function addMetaLine (fieldset, labelText, inputAttr) { let label = document.createElement("label"); label.innerHTML = labelText; + label.htmlFor = labelText; field.append(label); let input = document.createElement("input"); for (let k in inputAttr) { input.setAttribute(k, inputAttr[k]) } + input.id = labelText; field.append(input); }