add label for in name fieldset
This commit is contained in:
parent
b572b79798
commit
80e259b4f7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user