dnn-input id="wName" minlength="10" required=""></dnn-input>
console.log("Name: " + document.getElementById("wName").value);
In this example, the console will log undefined until the input is changed. Then it will log "".
Inputs should start with "" to prevent all associated issues in validation and values handling.
dnn-input id="wName" minlength="10" required=""></dnn-input>console.log("Name: " + document.getElementById("wName").value);In this example, the console will log undefined until the input is changed. Then it will log "".
Inputs should start with "" to prevent all associated issues in validation and values handling.