CSS Selector - CSS :read-write

The :read-write selector selects form elements with no "readonly" attribute, and no "disabled" attribute.


CSS Version

CSS Syntax

:read-write {
   style properties 

Browser compatibility

:read-write Yes No Yes Yes Yes


<!DOCTYPE html>
input:-moz-read-write { /* For Firefox */
    background-color: red;
}<!--from  w  ww  . j a va  2  s  . c  om-->

input:read-write {
    background-color: red;

    <p>A normal input element:<br><input value="hello"></p>
    <p>A readonly input element:<br><input readonly value="hello"></p>


Click to view the demo