set <div >document.getElementBy code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: get element by id in javascript
document.getElementById("YourElementId");
document.getElementById("p1").innerHTML = "New text!";
document.getElementById("YourElementId");