1521738724
This commit is contained in:
parent
45d3236907
commit
b5a90cae38
4
app.js
4
app.js
@ -15,10 +15,10 @@ function genBookId() {
|
||||
function addBook(event){
|
||||
event.preventDefault();
|
||||
console.log("Add Book", event.target.bookTitle.value);
|
||||
|
||||
let bookId = genBookId();
|
||||
let row = `
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>${bookId}</td>
|
||||
<td>${event.target.bookTitle.value}</td>
|
||||
<td>${event.target.bookGenre.value}</td>
|
||||
<td>${event.target.bookDesc.value}</td>
|
||||
|
Loading…
Reference in New Issue
Block a user