InputElement

EventTargetNodeDOMElementElementjs.html.InputElement (extern class)

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.

See:

Instance Members

accept: String

alt: String

autocomplete: String

autofocus: Bool

defaultChecked: Bool

checked: Bool

disabled: Bool


files: FileList

formAction: String

formEnctype: String

formMethod: String

formNoValidate: Bool

formTarget: String

height: Int

indeterminate: Bool

list: Element

max: String

maxLength: Int

min: String

minLength: Int

multiple: Bool

name: String

pattern: String

placeholder: String

readOnly: Bool

required: Bool

size: Int

src: String

step: String

type: String

defaultValue: String

value: String

valueAsDate: Date

valueAsNumber: Float

width: Int

willValidate: Bool

validity: ValidityState

validationMessage: String

labels: NodeList

selectionStart: Int

selectionEnd: Int

selectionDirection: String

align: String

string: represents the alignment of the element. Use CSS instead.


useMap: String

string: represents a client-side image map.


textLength: Int

stepUp(?n: Int = 1): Void

Increments 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

stepDown(?n: Int = 1): Void

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

setCustomValidity(error: String): Void
Name Type
error String

select(): Void

setRangeText(replacement: String, start: Int, end: Int, ?selectionMode: SelectionMode = PRESERVE): Void
Name Type Default
replacement String
start Int
end Int
selectionMode SelectionMode PRESERVE

setSelectionRange(start: Int, end: Int, ?direction: String): Void
Name Type Default
start Int
end Int
direction String (optional)