Used to store the validity state of an element.
Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
ValidityState Constructor() : ValidityState
Validity State for an element.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ | ||
ValidityState() : ValidityStateValidity State for an element. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
valueMissing
: Boolean
The control is suffering from being missing.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
typeMismatch
: Boolean
The control is suffering from a type mismatch.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
patternMismatch
: Boolean
The control is suffering from pattern mismatch.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
tooLong
: Boolean
The control is suffering from being too long.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
rangeUnderflow
: Boolean
The control is suffering from an underflow.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
rangeOverflow
: Boolean
The control is suffering from an overflow.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
stepMismatch
: Boolean
The control is suffering from a step mismatch.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
customError
: Boolean
The control is suffering from a custom error.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
|
valid
: Boolean
The control is valid.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 4.0+ | 6.0+ |
|
|||||||
References
Availability
JavaScript 1.2|WhatWG