1521738691

This commit is contained in:
Arti Zirk 2018-03-22 19:11:31 +02:00
parent 22ddef7264
commit 45d3236907
1 changed files with 5 additions and 0 deletions

5
app.js
View File

@ -7,6 +7,11 @@ addForm.addEventListener("submit", addBook);
let bookTable = document.getElementById("bookTableBody");
let lastBookId = 0;
function genBookId() {
return lastBookId++;
}
function addBook(event){
event.preventDefault();
console.log("Add Book", event.target.bookTitle.value);