I am creating a small shop that will sell shirts for an event and the sale of the shirts will be limited to a maximum of 4 shirts per person, so I need that in the field where the number of shirts that the person wants to buy is defined is limited to 4.
With the input type number I can set this value but if the person types the value instead of using the control created by the field it can easily add a larger value.
How do I make the field only accept values 1, 2, 3 or 4 remembering that the minimum value is 1 and the maximum is 4