Home › Forums › JavaScript › Set value of html label › Reply To: Set value of html label
August 13, 2013 at 12:02 am
#146597
Chromawoods
Participant
You mean something like this?
document.getElementById("test").innerText = 'Whatever';
Or, if you need to add some HTML to that value:
document.getElementById("test").innerHTML = 'Whatever makes you <em>happy</em>';