W3Schools.com

HTML <textarea> disabled Attribute

HTML textarea Tag Reference HTML <textarea> tag

Example

A disabled text area:

<textarea rows="3" cols="25" disabled="disabled">
At W3Schools you will find all the Web-building tutorials you need, from basic HTML to advanced XML, SQL, ASP, and PHP.
</textarea>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The disabled attribute is supported in all major browsers.


Definition and Usage

The disabled attribute specifies that a text area should be disabled. A disabled text area is unusable and un-clickable.

The disabled attribute can be set to keep a user from using a text area until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the disabled value, and make the text area usable.


Syntax

<textarea disabled="disabled">

Attribute Values

Value Description
disabled Specifies that the text area should be disabled


HTML textarea Tag Reference HTML <textarea> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE