Answers for "how to replace content in a p tag in javascript"

7

javascript set text of div

document.getElementById("content").innerHTML = "whatever";
Posted by: Guest on January-17-2020
24

.innerhtml

// .innerHTML method is used to change the html contents of a DOM object
document.getElementById("demo").innerHTML = "Paragraph changed!";
Posted by: Guest on April-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language