Append multiple items in JavaScript
问题 I have the following function and I am trying to figure out a better way to append multiple items using appendChild() . When the user clicks on Add, each item should look like this: <li> <input type="checkbox"> <label>Content typed by the user</label> <input type="text"> <button class="edit">Edit</button> <button class="delete">Delete</button> </li> and I have this function to add these elements: function addNewItem(listElement, itemInput) { var listItem = document.createElement("li"); var