how to read a text inside a p tag using id code example
Example: javascript get text from paragraph
function getContent() {
return document.getElementById("myParagraph").innerHTML;
}
function getContent() {
return document.getElementById("myParagraph").innerHTML;
}