Easy Tutorial
❮ Prop Style Borderimageslice Prop Body Link ❯

Input Button disabled Attribute


Example

Example 1

Disable a button:

Output result:


Definition and Usage

The disabled attribute sets or returns whether the button is enabled or not.

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

Syntax

Set the disabled attribute:

Return the disabled attribute:


Browser Support

All major browsers support the disabled attribute.

❮ Prop Style Borderimageslice Prop Body Link ❯