The text of the element content is stored in the
innerHTML to the new content. For example:
document.getElementById("#p1").innerHTML = "New Text";
In jQuery, you can change the
innerHTML content using the
.html() method, which gets or sets the
innerHTML sting. For ...