step attribute

<input step='value'>

Explanation

step attribute provides the number intervals for the <input>.

Example Code:

Result :
Quantity (between 1 and 10):
  • step attribute illustrates the legal intervals for the input field.
  • It functions with the input types like "month, datetime-local, range, date, number, datetime, time and week".

Limitations:

It will function only in "Opera and Chrome" web browsers.

Ask Questions

Ask Question