change div js code example
Example 1: javascript set text of div
document.getElementById("content").innerHTML = "whatever";
Example 2: javascript replace content of div
document.getElementById("test").innerHTML = "new content"
document.getElementById("content").innerHTML = "whatever";
document.getElementById("test").innerHTML = "new content"