1521737438
This commit is contained in:
parent
27a984c7ed
commit
ad5ec31c71
4
app.js
4
app.js
|
@ -3,8 +3,10 @@
|
||||||
console.log("App");
|
console.log("App");
|
||||||
|
|
||||||
let addForm = document.getElementById("addFormElement");
|
let addForm = document.getElementById("addFormElement");
|
||||||
|
addForm.addEventListener("submit", addBook);
|
||||||
|
|
||||||
function addBook(){
|
function addBook(event){
|
||||||
|
event.preventDefault();
|
||||||
console.log("Add Book");
|
console.log("Add Book");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue