HTML <button> disabled attribute

Definition and Usage

disabled Property is a boolean attribute.

If this property is set, it specifies that the button should be disabled.

Disabled buttons are not available and cannot be clicked.

Can be set disabled Properties to prevent users from clicking the button until certain other conditions are met (such as checking a checkbox, etc.). Then, JavaScript can remove the disabled value and make the button clickable again.

Example

Disabled Button:

<button type="button" disabled>Click Me!</button>

Try It Yourself

Syntax

<button disabled>

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support