Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript queryselector

//Pretend there is a <p> with class "example"
const myParagraph = document.querySelector('.example');
//You can do many this with is
myParagraph.textContent = 'This is my new text';
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #queryselector
ADD COMMENT
Topic
Name
4+8 =