Input Week stepDown() Method

❮ Input Week Object

Example

Decrement the value of a week field by 10 weeks:

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

Description

The stepDown() method decrements the value of the week field by a specified number.

This method will only have an affect on WEEKS (not years).

Tip: To increment the value, use the stepUp() method.


Browser Support

Method
stepDown() Yes 12.0 Not supported Yes Yes

Note: In Safari, you must enter a week in the week field before you can decrement the value.


Syntax

weekObject.stepDown(number)

Parameter Values

Parameter Description
number Required. Specifies the amount of weeks the week field should decrease.

If omitted, the weeks are decremented by "1"

Technical Details

Return Value: No return value

More Examples

Example

Decrement the weeks by 1 (default):

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

❮ Input Week Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.