Answers for ""how to write <li> to <ul> in javascript""

0

create li in ul js

function function1() {
  var ul = document.getElementById("list");
  var li = document.createElement("li");
  li.appendChild(document.createTextNode("Four"));
  ul.appendChild(li);
}
Posted by: Guest on September-30-2020

Code answers related to ""how to write <li> to <ul> in javascript""

Code answers related to "Javascript"

Browse Popular Code Answers by Language