Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
This property is read/write.
object.step = ptr ptr = object.step
A string containing a numeric value.
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 188.8.131.52.11
Anything outside that range or an odd number will not be submitted, and an error message will be displayed.
<form> <label> Enter an even number between 0 and 100: <input title="Enter an even number" type="number" min="0" max="100" step="2"> <input type="submit"> </label>