Increment the value of a datetime field by 10 minutes:
The stepDown() method increments the value of the local datetime field by a specified number.
This method will only have an affect on MINUTES (not years, months, days, hours, seconds or milliseconds).
Tip: To decrement the value, use the stepDown() method.
The stepUp() method is supported in all major browsers, except Internet Explorer.
Note: In Safari, you must enter a date in the datetime field before you can increment the minutes.
Note: <input> elements with type="datetime-local" are not supported in
Internet Explorer or Firefox.
Parameter | Description |
---|---|
number | Required. Specifies the amount of minutes the datetime field should
increase. If omitted, the minutes are incremented by "1" |
Return Value: | No return value |
---|
Increment the minutes by 1 (default):