disabled Attributedisabled Attributedisabled is declared on the elements: input, textarea, select, optgroup, option, buttonThe disabled attribute is a
Boolean
attribute which may be specified on many
form
elements to state that the element in question should be
initially non-functional.
Users cannot interact with disabled controls
(if a button, it cannot be pressed, if an input field, the
text may not be altered, etc.) and no name=value
pair is sent to the processing URI for that element
on submission of the
form.
Disabled controls are usually greyed out to distinguish
them visually from functional controls. They cannot receive focus
and do not participate in the tabbing order of the page (see the
tabindex attribute).
Initially disabled controls can subsequently be enabled using,
for example, JavaScript code.
Note: If you are writing code which
needs to be compatible with Internet Explorer, you should
bear in mind that IE does not support the
disabled attribute on option or optgroup
elements.
The disabled attribute is not present in the
*W3C XHTML 1.1 Basic Forms Module.
See also the readonly attribute.