Advertisement
pacho_the_python

Untitled

Mar 30th, 2023
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. update_btn.addEventListener("click", () => {
  2.             let http_header_update = {
  3.                 method: "PATCH",
  4.                 body: JSON.stringify({
  5.                     product: product_input.value,
  6.                     count: count_input.value,
  7.                     price: price_input.value})
  8.             }
  9.  
  10.             fetch(update_url, http_header_update)
  11.                 .then(() => {
  12.                     load_products()
  13.                 })
  14.         })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement