InputElement
The HTMLInputElement interface provides special properties and methods for manipulating the layout and presentation of input elements.
Documentation HTMLInputElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Instance Members
accept: Stringalt: Stringautocomplete: Stringautofocus: BooldefaultChecked: Boolchecked: Booldisabled: Boolform: FormElementfiles: FileListformAction: StringformEnctype: StringformMethod: StringformNoValidate: BoolformTarget: Stringheight: Intindeterminate: Boollist: Elementmax: StringmaxLength: Intmin: StringminLength: Intmultiple: Boolname: Stringpattern: Stringplaceholder: StringreadOnly: Boolrequired: Boolsize: Intsrc: Stringstep: Stringtype: StringdefaultValue: Stringvalue: StringvalueAsDate: DatevalueAsNumber: Floatwidth: IntwillValidate: Boolvalidity: ValidityStatevalidationMessage: Stringlabels: NodeListselectionStart: IntselectionEnd: IntselectionDirection: Stringalign: Stringstring: represents the alignment of the element. Use CSS instead.
useMap: Stringstring: represents a client-side image map.
textLength: IntIncrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
if the method is not applicable to for the current type value.,
if the element has no step value,
if the value cannot be converted to a number,
if the resulting value is above the max or below the min.
| Name | Type | Default |
|---|---|---|
n |
Int | 1 |
Decrements the value by (step * n), where n defaults to 1 if not specified. Throws an INVALID_STATE_ERR exception:
if the method is not applicable to for the current type value,
if the element has no step value,
if the value cannot be converted to a number,
if the resulting value is above the max or below the min.
| Name | Type | Default |
|---|---|---|
n |
Int | 1 |
checkValidity(): Bool| Returns |
|---|
| Bool |
reportValidity(): Bool| Returns |
|---|
| Bool |
| Name | Type |
|---|---|
error |
String |
select(): VoidsetRangeText(replacement: String, start: Int, end: Int, ?selectionMode: SelectionMode = PRESERVE): Void| Name | Type | Default |
|---|---|---|
replacement |
String | |
start |
Int | |
end |
Int | |
selectionMode |
SelectionMode | PRESERVE |
| Name | Type | Default |
|---|---|---|
start |
Int | |
end |
Int | |
direction |
String | (optional) |