Streaming live at 10am (PST)

How to create plus and minus counter buttons

Hi all I am trying to get this code to work to edit the quantity of a value in a cart. I want to edit the value of a text field using plus and minus buttons.

This is the script in the body tag. The buttons are in the cart wrapper. IF you open the cart you’ll see 2 divs and a text field.

Here is my public share link: LINK
(how to access public share link)

  1. Classes are case-sensitive.

  2. Webflow automatically converts class names to hyphenated-lowercase when the site is published.

  3. Therefore Div-block-126 and Div-Block-125 is probably incorrect.

  4. Also, you are also missing a class selector from the first section “.” on line 6.