Input Week step Property
Change the legal week intervals:
Definition and Usage
The step property sets or returns the value of the step attribute of a week field.
The step attribute specifies the legal week intervals to choose from when the user opens the calendar in a week field.
For example, if step = "2", you can only select every second week in the calendar.
Note: The <input type="week"> element does not show any date field/calendar in Firefox.
Return the step property:
Set the step property:
Specifies the legal week intervals. Default is 1 week.
If step="2", you can only select every second week in the week calendar.
If step="10", you can only select every tenth week in the week calendar.
|Return Value:||A Number, representing the legal week intervals|
Get the legal week intervals:
The result of x will be:
HTML reference: HTML <input> step attribute
❮ Input Week Object