Which is the correct way to change the HTML content of a div? code example
Example 1: javascript set text of div
document.getElementById("content").innerHTML = "whatever";
Example 2: change innerhtml
document.getElementById("p1").innerHTML = "New text!";