disabled
The disabled boolean attribute makes a form control non-interactive and excludes it from form submission.
Syntax
disabled Examples
<button disabled>Submitting...</button>
<fieldset disabled>
<input name="a">
</fieldset>
Output
Renders a greyed-out, unclickable button and disables every control inside the fieldset.
Notes
A boolean attribute; presence alone enables it. Disabled controls are skipped in tab order and not submitted. Disabling a <fieldset> disables all descendants. Use aria-disabled when you need a focusable but inert control.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 1.0 |
| firefox | 1.0 |
| safari | 1.0 |
| edge | 12 |