THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Input Time stepDown() Method

Input Time Object Reference Input Time Object

Example

Decrement the value of a time field by 10 minutes:

document.getElementById("myTime").stepDown(10);
Try it Yourself »

Definition and Usage

The stepDown() method decrements 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 increment the value, use the stepUp() method.


Browser Support

Method
stepDown() Yes 12.0 Not supported Yes Yes

Syntax

timeObject.stepDown(number)

Parameter Values

Parameter Description
number Required. Specifies the amount of minutes the time field should decrease.

If omitted, the minutes are decremented by "1"

Technical Details

Return Value: No return value

More Examples

Example

Decrement the minutes by 1 (default):

document.getElementById("myTime").stepDown();
Try it Yourself »

Input Time Object Reference Input Time Object