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.
The value property is supported in all major browsers.
Note: The <input type="week"> element is not supported in Internet Explorer or Firefox.
Return the value property:
Set the value property:
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:
The result of x will be:
HTML reference: HTML <input> value attribute