HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Input Week Object : Change the legal week intervals
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.
Property | |||||
---|---|---|---|---|---|
step | Yes | 10.0 | Yes | Yes | Yes |
Return the step property:
Set the step property:
Value | Description |
---|---|
number |
Specifies the legal week intervals. Default is 1 week. Examples: 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:
var x = document.getElementById("myWeek").step;
HTML reference: HTML <input> step attribute
❮ Input Week Object