Easy Tutorial
❮ Prop Style Pagebreakafter Prop Meter Max ❯

Input Color disabled Attribute

Input Color Object

Example

Disable the color picker:

Output result:


Definition and Usage

The disabled attribute is used to set or return whether the color picker is enabled or disabled.

Elements with the disabled attribute are unusable and unclickable. Disabled elements are typically displayed in a grayed-out state in the browser.

This attribute reflects the HTML disabled attribute.


Browser Support

All major browsers support the disabled attribute.

Note: The <input type="color"> element is not supported in Internet Explorer and Safari browsers.


Syntax

Return the disabled attribute:

Set the disabled attribute:

Attribute Values

Value Description
true|false Describes whether the color picker is enabled. <br> true - The color picker is disabled. <br> false - Default. The color picker is enabled.

Technical Details

| Return Value: | Boolean, returns true if the color picker is disabled, otherwise returns false. | | --- | --- |


More Examples

Example

Check if the color picker is enabled:

Example

Disable or enable the color picker:


Related Articles

HTML Reference: HTML <input> disabled Attribute


❮ Prop Style Pagebreakafter Prop Meter Max ❯