javascript set html of div code example
Example 1: javascript set text of div
document.getElementById("content").innerHTML = "whatever";
Example 2: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";
document.getElementById("content").innerHTML = "whatever";
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";