Input Time stepUp() Method
Example
Increment the value of a time field by 10 minutes:
document.getElementById("myTime").stepUp(10);
Try it Yourself »
Description
The stepDown() method increments the value of the time field by a specified number.
This method will only have an affect on MINUTES (not hours, seconds or milliseconds).
Tip: To decrement the value, use the stepDown() method.
Browser Support
Method | |||||
---|---|---|---|---|---|
stepUp() | Yes | 12.0 | Not supported | Yes | Yes |
Syntax
timeObject.stepUp(number)
Parameter Values
Parameter | Description |
---|---|
number | Required. Specifies the amount of minutes the time field should increase. If omitted, the minutes are incremented by "1" |
Technical Details
Return Value: | No return value |
---|
More Examples
Example
Increment the minutes by 1 (default):
document.getElementById("myTime").stepUp();
Try it Yourself »
❮ Input Time Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.