Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- update_btn.addEventListener("click", () => {
- let http_header_update = {
- method: "PATCH",
- body: JSON.stringify({
- product: product_input.value,
- count: count_input.value,
- price: price_input.value})
- }
- fetch(update_url, http_header_update)
- .then(() => {
- load_products()
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement