Advertisement
Guest User

js shop

a guest
Feb 21st, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                             const form = document.querySelector('div[data-section-id="cart-template"] > form.cart');
  2.                             if(!form) {
  3.                                 return;
  4.                             }
  5.                             form.onsubmit = function() { form.action = 'http://localhost:3000/checkout'  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement