I want to change the label text once the user has changed the input field text.
This is what I have so far:
script function:
function ModuleName() {
var text = document.getElementById('txtModCode').innerHTML;
document.getElementById('lblModCode').innerHTML = text;
}
fields and label
<input type="text" name="txtModCode" id="txtModCode" class="form-control" placeholder="Enter Module Code Here" onchange="ModuleName()" />
<label id="lblModCode"></label>
Thank you in advance