valueMissing
Summary
Returns whether a value has not been entered in an input field that is required.
Property of dom/ValidityStatedom/ValidityState
Syntax
Note: This property is read-only.
var result = element.validity.valueMissing;
Return Value
Returns an object of type BooleanBoolean
Whether a value has not been entered in an input field that is required.
Related specifications
- W3C HTML5
- Living Standard
- WHATWG HTML
- Living Standard
Attributions
Microsoft Developer Network: [valueMissing Property Article]
Portions of this content come from HTML5Rocks! [Making forms fabulous article]