Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Set value of html label Reply To: Set value of html label

#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>';