for some reason i get null values. Im filling the value from label input with a defaultvalue form the database That works fine
<label for="input_first_name">Vorname:</label>
<input id="input_first_name" value=<%out.print(html_contents.get("vorname"));%> type="text" class="form-control">
Later in script:
data["vorname"] = document.querySelector('#input_first_name').value;
I thought about the scriptfunction takes the value of the label and not the label/input. And the label value is empty. If so. How can I change that?