Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
Szhu037 committed Mar 9, 2024
1 parent 459fba8 commit af603c7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions add.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@
let host = "http://localhost:8080";
async function addGuitar() {
let message = "";
let guitarId = document.getElementById("id").value;
let guitarType = document.getElementById("type").value;
let Guitar = { id: guitarId, type: guitarType };
let serialNumber = document.getElementById("SerialNumber").value;
let guitarPrice = document.getElementById("Price").value;
let guitarBuilder = document.getElementById("Builder").value;
let guitarModel = document.getElementById("Model").value;
let guitarType = document.getElementById("Type").value;
let backWood = document.getElementById("Backwood").value;
let topWood = document.getElementById("Topwood").value;
let Guitar = {};
console.log("You entered:" + JSON.stringify(Guitar));

//TODO
Expand Down

0 comments on commit af603c7

Please sign in to comment.