Easy Tutorial
❮ Prop Select Selectedindex Prop Text Value ❯

Password disabled Attribute


Example

Example 1

Disable password field:

Output result:


Definition and Usage

The disabled attribute can set or return whether the password field is disabled.

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

Syntax

Set disabled attribute:

Return disabled attribute:


Browser Support

All major browsers support the disabled attribute.

❮ Prop Select Selectedindex Prop Text Value ❯