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