Game Development Reference
In-Depth Information
Other valid attributes for the date input type include the following:
•
name
(value must be a string): Identifies a particular field by the string
value associated with the attribute
•
disabled
(acceptable values include
disabled
,
""
, or empty): Speci-
fies that the element is disabled and cannot receive control.
•
autocomplete
(acceptable values include
on
or
off
): Specifies wheth-
er the browser should store values entered by the user so inputting a
stored value in the future can be automatically completed by the browser
upon hint by user
•
autofocus
(acceptable values include
autofocus
,
""
, or empty): Spe-
cifies to the browser that the element must receive focus immediately
after the document finishes loading
•
min
(value must be a valid date in the form of "yyyy-mm"): Specifies the
lowest date allowed to be selected by the user
•
max
(value must be a valid date in the form of "yyyy-mm"): Specifies the
highest date allowed to be selected by the user
•
readonly
(acceptable values include
readonly
,
""
, or empty): Speci-
fies that the value of this element cannot be changed by the user
•
step
(acceptable values include
any
or any positive integer): Specifies
how the value attribute of the element is to change
•
required
(acceptable values include
required
,
""
, or empty): Speci-
fies that this element must have a valid value in order for the form to be
allowed to submit
•
value
(value must be a valid date in the form of "yyyy-mm"): Specifies
the actual date represented by this element
Week
The week input type allows the user to select a specific week of a year from a
browser-supplied calendar. The specific format and styling of this calendar is unique
to the browser and platform used. The data that results from a date selection is of
the form
YYYY-Www
(for example, 2013-W05).
<input type="week"
min="1935-W51"