example text Our Learning Partner ... to make that link optional with a checkbox so that the “Get this widget” tag is displayed or not displayed in the text area depending on user choice. HTML TextArea Tag is used in a web application, where needs multiple lines of text input or long text content.For example in e-commerce sides like Flipkart and Amazon needed a user address. Q&A for Work. Style elements with a "readonly" attribute with CSS CSS Web Development Front End Technology To select elements that are read-only, use the CSS :read-only selector. You can't use jQuery to change the background color because jQuery doesn't let you specify the !important CSS declaration. 1. If the textarea is readonly, then it’s content cannot be changed but can be copied and highlighted. Definition and Usage. For the CSS selector to work if you set readOnly with JavaScript you have to use the selector textarea[readonly]. The CSS rule that Forms uses to change the background color of read-only input boxes is very specific and overrides other styles. The