Good evening. I have an input type number (for when ready, my shopping cart can change the quantity)
<td>
<input
type="number"
style="width: 50px;"
id="<?php echo "p" . $a; ?>"
min="1"
max="<?php echo $max_produto; ?>"
value="<?php echo $values["item_quantity"]; ?>"
>
</td>
My problem is that even setting the min and max, if I change directly in the input without using the arrows I can by the value 0, or less than 0, that when I confirm the purchase it gets the quantity put and not should happen. How can I solve this problem?