1521739568
This commit is contained in:
parent
43caa10e01
commit
bfff8afb1f
4
app.js
4
app.js
|
@ -23,7 +23,7 @@ function addBook(event){
|
|||
<td>${event.target.bookGenre.value}</td>
|
||||
<td>${event.target.bookDesc.value}</td>
|
||||
<td>
|
||||
<button>Edit</button>
|
||||
<button onclick="editBook(${bookId})">Edit</button>
|
||||
<button onclick="deleteBook(${bookId})">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -39,6 +39,6 @@ function deleteBook(bookId) {
|
|||
bookTable.removeChild(rowElement);
|
||||
}
|
||||
|
||||
function editBook() {
|
||||
function editBook(bookId) {
|
||||
console.log("Edit book");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue