Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how add text to element in javascript

var paragraph = document.getElementById("p");
var text = document.createTextNode("This just got added");

paragraph.appendChild(text);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #text #element #javascript
ADD COMMENT
Topic
Name
4+3 =