Input Week stepUp() Method
Definition and Usage
stepUp()
The method increases the value of the week field by the specified number.
This method only affects the week (not the year).
Tip:To decrease the value, use stepDown() Method.
Example
Example 1
Increase the value of the week field by 10 weeks:
document.getElementById("myWeek").stepUp(10);
Example 2
Increase the week number by 1 (default):
document.getElementById("myWeek").stepUp();
Syntax
weekObject.stepUp(number)
Parameter Values
Parameters | Description |
---|---|
number |
Required. Specifies the number of weeks to increase the week field. If omitted, the week number increases by "1". |
Technical Details
Return Value:
No Return Value.
Browser Support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | 12.0 | Not Supported | Supported | Supported |
Note:In Safari, you must enter the week field first, then you can increase the value.