Easy Tutorial
❮ Prop His Length Met Document Createattribute ❯

Submit disabled Attribute


Example

Example 1

Disable the submit button:

Output result:


Definition and Usage

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

A disabled element is unusable and unclickable. The disabled attribute can be set until certain conditions are met (such as selecting a checkbox, etc.).

Syntax

Set the disabled attribute:

Return the disabled attribute:


Browser Support

All major browsers support the disabled attribute.

❮ Prop His Length Met Document Createattribute ❯