WE BELIEVE IN QUALITY SERVICE

disabled Attribute

disabled attribute defines that the selected element should be disabled. It is a boolean attribute. It can be used with <button>, <input>, <option>, <select>, <textarea> and <fieldset>.

Example for button:

<button type="button" disabled> Click Me!! </button>

Run Example

Example for textarea:

<textarea disabled> This is an example of disabled attribute with textarea element. </textarea>

Run Example

Browser Support

Attribute Firefox Chrome IE Opera Safari
disabled(button) yes yes yes yes yes
disabled(input) 1.0 1.0 6.0 1.0 1.0
disabled(option) 1.0 1.0 8.0 yes yes
disabled(select) yes yes yes yes yes
disabled(textarea) yes yes yes yes yes