set text of div code example
Example 1: javascript set text of div
document.getElementById("content").innerHTML = "whatever";
Example 2: javascript update text in div
fieldNameElement.innerHTML = "My new text!";
document.getElementById("content").innerHTML = "whatever";
fieldNameElement.innerHTML = "My new text!";