Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

append li to ul javascript

function function1() {
  var ul = document.getElementById("list");
  var li = document.createElement("li");
  li.appendChild(document.createTextNode("Four"));
  ul.appendChild(li);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #li #ul #javascript
ADD COMMENT
Topic
Name
1+5 =