Depending on browser support:
Numeric restrictions will apply in the input field.

Quantity:

Note: type="number" is not supported in Internet Explorer 9 and earlier.