Input Week stepUp() Methode
Definitie en gebruik
stepUp()
Deze methode verhoogt de waarde van het weekveld met het opgegeven getal.
Deze methode heeft alleen invloed op de week (en niet het jaar).
Tip:Om de waarde te verlagen, gebruik dan stepDown() Methode.
Voorbeeld
Voorbeeld 1
Weekwaarde verhogen met 10 weken:
document.getElementById("myWeek").stepUp(10);
Voorbeeld 2
Weekaantal verhogen 1 (standaard):
document.getElementById("myWeek").stepUp();
Syntax
weekObject.stepUp(number)
Parameterswaarden
Parameters | Beschrijving |
---|---|
number |
Required. Specifies the number of weeks to increase the day field. If omitted, the week number is increased 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 property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | 12.0 | Not supported | Supported | Supported |
Note:In Safari, you must enter the day of the week in the field and then you can increase the value.