javascript update text in div

JavaScript
fieldNameElement.innerHTML = "My new text!";
Source

Also in JavaScript: