Decrement the value of a week field by 10 weeks:
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.
The stepDown() method is supported in all major browsers, except Internet Explorer.
Note: In Safari, you must enter a week in the week field before you can decrement the value.
Note: <input> elements with type="week" are not supported in
Internet Explorer or Firefox.
Parameter | Description |
---|---|
number | Required. Specifies the amount of weeks the week field should
decrease. If omitted, the weeks are decremented by "1" |
Return Value: | No return value |
---|
Decrement the weeks by 1 (default):