Доброго дня! Кто может подсказать, не работает плюс и минус в корзине, нажимаю появляется 2, и сразу сбрасывает на 1 назад.
<div class="quantity number">
<button type="button" onclick="quantity_top_dec( $(this).parent(), <?php echo $product['product_id']; ?> )" class="minus2 quantity-bnt minus"><img src="img/icons/minus.svg" alt=""></button>
<input type="text" name="quantity[<?php echo $product['cart_id']; ?>]" size="2" value="<?php echo $product['quantity']; ?>" onchange="quantity_top_inc( $(this).parent(), <?php echo $product['product_id']; ?> )" id="qty_box1_<?php echo $product['product_id']; ?>" class="quantity-input qty_box1"/>
<button onclick="quantity_top_inc( $(this).parent(), <?php echo $product['product_id']; ?> )" type="button" class="plus2 quantity-bnt plus"><img src="img/icons/plus.svg" alt=""></button>
</div>