change text of div code example
Example 1: change text of element js
document.getElementById("p1").innerHTML = "New text!";
Example 2: change p text jqwuery
.text("new text")
document.getElementById("p1").innerHTML = "New text!";
.text("new text")