Easy Tutorial
❮ Prop Video Muted Prop Area Href ❯

Button disabled Attribute


Example

Example 1

Disable a button:

Output result:


Definition and Usage

The disabled attribute can set or return whether the button is disabled.

A disabled element is unusable and unclickable. Disabled elements are typically displayed in gray in browsers.

Syntax

Set the disabled attribute:

Return the disabled attribute:


Browser Support

All major browsers support the disabled attribute.

❮ Prop Video Muted Prop Area Href ❯