I am using the following html input element for collecting the product quantity in Html page but the user can still go ahead and manually enter negative value. For example: I selected the the textbox and entered -100 and input field took it without complaining about it.
How can I prevent user from entering 0 and non-negative values in Html input element?
<input type="number" id="qty" value="" size="3" min="1" />