We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f3e79f commit 44166baCopy full SHA for 44166ba
app.js
@@ -24,9 +24,12 @@ addForm.addEventListener('submit', function(e){
24
bookName.textContent = value;
25
deleteBtn.textContent = 'delete';
26
27
+ // add classes
28
+ bookName.classList.add('name');
29
+ deleteBtn.classList.add('delete');
30
+
31
// append to DOM
32
li.appendChild(bookName);
33
li.appendChild(deleteBtn);
34
list.appendChild(li);
- //list.insertBefore(li, list.querySelector('li:first-child'));
35
});
0 commit comments