how to fetch value of p in javascript code example
Example: javascript get text from paragraph
function getContent() {
return document.getElementById("myParagraph").innerHTML;
}
function getContent() {
return document.getElementById("myParagraph").innerHTML;
}