Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Append to the text in the

tag

const para=document.querySelector('p');
para.innerText +=' how are you';//+= appends
console.log(para.innerText);
 
PREVIOUS NEXT
Tagged: #Append #text #tag
ADD COMMENT
Topic
Name
5+5 =