0
我想在購物車中增加和減少更多產品數量,並且我希望在span標籤中顯示當前值。如何增加和減少產品數量?
<a href="javascript:" id="minus2" onclick="decrementValue()"/><strong>-</strong></a>
<input type="text" id="qty2" name="<?php echo $s?>" min="1" value="<?php echo $quantity; ?>">
<a href="javascript:" id="add2" onclick="incrementValue()"/><strong>+</strong></a>
<a href="cart-item-delete.php?cartdetailsID=<?php echo $cartdetailsID; ?>"><i class="icon-trash icon-large" onclick="return confirm('Do you want to delete cart?');" ></i> </a>
<?php if($free_qty!=0){ echo "<br>".$free_qty." Free";} ?>