Answers for "get element with inner text js"

6

js inner text

document.getElementById("text").innerText = "Your new text here"
Posted by: Guest on January-29-2021
-1

innertext of element js

var text = document.querySelector('#text').innerText; //'#':id '.':class
Posted by: Guest on March-13-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language