CSS Pseudo-class :invalid
This selector allows us to select input
elements that don't contain valid content, as determined by its type
attribute.
Examples
Compatibility
Chrome | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|
10+ | 4+ | 10+ | 10+ | 5+ |