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 : Get the maximum week and year allowed for a week field
The max property sets or returns the value of the max attribute of a week field.
The max attribute specifies the maximum value (week and year) for a week field.
Property | |||||
---|---|---|---|---|---|
max | Yes | 10.0 | Yes | Yes | Yes |
Return the max property:
Set the max property:
Value | Description |
---|---|
YYYY-WWW |
Specifies the maximum week and year allowed. Explanation of components:
|
Return Value: | A String, representing the maximum week and year allowed |
---|
Change the maximum week and year allowed:
document.getElementById("myWeek").max = "2014-W35";
HTML reference: HTML <input> max attribute
❮ Input Week Object