ValidityState
Return to: HTML DOM Level 5 index

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() : ValidityState

Validity State for an element.

Returns
ValidityState

Visibility
internal

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+
Availability

WhatWG

typeMismatch : Boolean
The control is suffering from a type mismatch.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

patternMismatch : Boolean
The control is suffering from pattern mismatch.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

tooLong : Boolean
The control is suffering from being too long.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

rangeUnderflow : Boolean
The control is suffering from an underflow.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

rangeOverflow : Boolean
The control is suffering from an overflow.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

stepMismatch : Boolean
The control is suffering from a step mismatch.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

customError : Boolean
The control is suffering from a custom error.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

valid : Boolean
The control is valid.
Show Details 1.0+ 5.0+ 1.0+ 5.0+ 4.0+ 6.0+
Availability

WhatWG

References

ValidityState

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs