Using HTML5 you can create an input field that accepts minimum and maximum numbers and then you can be
HTML Forms
• min="0" specifies the minimum acceptable value for this field.
• max="10" is the maximum acceptable value.
• step="1", combined with the min value, defines the acceptable numbers in the range: 0, 1, 2, and so on, up
to the maxvalue.
• value="0" is the default value that displays before selecting another number.
Do'stlaringiz bilan baham: