What's new? | Help | Directory | Sign in
Google
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-html, is-html-attribute
InputDisabledAttribute  
The input disabled attribute is way of declaring that a form field is disabled.

You are here: Home > HTML Reference > Elements > <input> element > disabled attribute

Usage

<input disabled>
<input disabled=disabled>

Users cannot interact with disabled inputs, and these inputs will not be included during form submission.

Values

This attribute is stand-alone; it can be present with no value, or it can have its own name as its value.

Elements

You can use the disabled attribute on the following elements:

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
input.disabled reflects <input> Y Y Y Y Y Y Y Y
input.disabled reflects <input disabled> Y Y Y Y Y Y Y Y

Further reading


Sign in to add a comment