FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lesson 13 · ZaDivan/JavaScript-DOM-Tutorial@44166ba · GitHub

Repository navigation

Commit 44166ba

Browse files
committed
lesson 13
1 parent 4f3e79f commit 44166ba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎app.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ addForm.addEventListener('submit', function(e){
2424
bookName.textContent = value;
2525
deleteBtn.textContent = 'delete';
2626

27+
// add classes
28+
bookName.classList.add('name');
29+
deleteBtn.classList.add('delete');
30+
2731
// append to DOM
2832
li.appendChild(bookName);
2933
li.appendChild(deleteBtn);
3034
list.appendChild(li);
31-
//list.insertBefore(li, list.querySelector('li:first-child'));
3235
});

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL