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

Quantity (between 1 and 5):

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