Decrement the value of a date field by 5 days:
The stepDown() method decrements the value of the date field by a specified number.
This method will only have an affect on DAYS (not month and year).
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 date in the date field before you can decrement the days.
Note: <input> elements with type="date" are not supported in
Internet Explorer or Firefox.
Parameter | Description |
---|---|
number | Required. Specifies the amount of days the date field should
decrease. If omitted, the days are decremented by "1" |
Return Value: | No return value |
---|
Decrement the days by 1 (default):