1521739568
This commit is contained in:
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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user