1521738239

This commit is contained in:
Arti Zirk 2018-03-22 19:03:59 +02:00
parent 0b2e9ff5cc
commit a840ceb4b3
1 changed files with 16 additions and 1 deletions

17
app.js
View File

@ -10,7 +10,22 @@ let bookTable = document.getElementById("bookTableBody");
function addBook(event){
event.preventDefault();
console.log("Add Book", event.target.bookTitle.value);
bookTable.innerHTML = "<h1>tere</h1>";
let row = `
<tr>
<td>1</td>
<td>My title</td>
<td>Drama</td>
<td>Little book about my life</td>
<td>
<button>Edit</button>
<button>Delete</button>
</td>
</tr>
`
bookTable.innerHTML = row;
}
function deleteBook() {