The forums ran from 2008-2020 and are now closed and viewable here as an archive.
This works fine. Only problem is that the control where value is set, I don’t want it to be an input field but something like a label. Is that possible?
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>';
Thank you, that is what I was looking for.