Javascript Set Text of Div
document.getElementById("content").innerHTML = "whatever";
DeuxAlpha
document.getElementById("content").innerHTML = "whatever";
let element = document.getElementById("test");
let newContent =`
<h1>New Title</h1>
<p>New Content</p>
`;
//changing the content in your element
element.innerHTML = newContent;