Answers for "change innertext by tag"

2

change innertext javascript

element.innerText = "Hello World";
Posted by: Guest on June-06-2020
0

change element text innerhtml keeping the elements or tags inside

document.getElementById("tagname").firstChild.data = text;
Posted by: Guest on April-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language