.cf-formwrap textarea[readonly] {background-color:purple !important;} 3 0. whatever by Ankur on Apr 13 2020 Donate replied on June 13, 2014 In the following example, a text area is created along with other form controls including textboxes, a select dropdown and checkbox. Additional components and props can be used to vary this layout on a per-form basis. Readonly. some other condition has been met (like selecting a checkbox, etc.). It may be used in a variety of components like forms, comment sections and forums. It would be a nice solution, but unfortunately readonly HTML attribute does not disable the input, and a continues allowing clicks and Enter key (and Space key when the input is focused).. The readOnly property sets or returns whether the contents of a text area should be read-only.