Game Development Reference
In-Depth Information
^ (hat modifier): Matches an expression at the beginning of a string.
$ (dollar modifier): Matches an expression at the end of a string.
Number
The number input type allows the user to select number from any mechanism
provided by the browser or to simply enter a numerical value if only a standard input
field is provided by the browser. The value is validated by the browser to ensure that
a number is indeed entered by the user. In mobile devices, where a digital keyboard
is provided for data entry, this input type hints to the system that the keyboard to be
provided should be the most appropriate for entering numbers.
<input type="number"
min="42"
max="108"
step="2"
/>
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 floating point number): Specifies the lowest number
allowed to be selected by the user.
max (value must be a floating point number): Specifies the highest num-
ber allowed to be selected by the user.
Search WWH ::




Custom Search