Introduction to the specific usage of the disabled and readonly attributes of textarea


The disabled property indicates a disabled text area in which the content cannot be modified and the value cannot be passed in the request.

The readonly property specifies that the text area is read-only. Content cannot be modified in a read-only text area. Values can be passed in the request.

The specific usage is as follows:

Copy code

The code is as follows:

<textarea readonly=”readonly”>test1</textarea>
Copy code

The code is as follows:

<textarea rows=”3″ cols=”20″ disabled=”disabled”>

Recommended Today

Why didn’t the looper’s polling loop in the main thread block the main thread?

Main thread activitythread [source code] public static void main(String[] args) { Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, “ActivityThreadMain”); // CloseGuard defaults to true and can be quite spammy. We // disable it here, but selectively enable it later (via // StrictMode) on debug builds, but using DropBox, not logs. CloseGuard.setEnabled(false); Environment.initForCurrentUser(); // Set the reporter for event logging in libcore […]