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

Quantity (between 1 and 5):

Note: type="number" is not supported in IE9 and earlier.