CSS :read-write selector
Complete CSS Selector Reference Manual
Example
If an input element is not read-only, that is, it does not have the "readonly" attribute, set its style to yellow:
input:read-write
{
background-color: yellow;
}
Try it »
Definition and usage
:read-write selector is used to match elements that are readable and writable.
Note: Currently, in most browsers, the :read-write selector is only used for input and textarea elements.
Browser support
The numbers in the table indicate the first browser version that supports this property.
| Selector | |||||
|---|---|---|---|---|---|
| :read-only | Supported | Not supported | -moz- | Yes | Yes |
CSS Syntax
:read-write
{
css declaration
;
}
Related pages
CSS selector :read-only