Easy Tutorial
❮ Prop Li Value Jsref Constructor Array ❯

Input Date disabled Attribute

Input Date Object

Example

Disable the date field:

The result could be:


Definition and Usage

The disabled attribute sets or returns whether the date field is available.

Elements with the disabled attribute are unusable and unclickable. Disabled elements are typically displayed in gray in the browser.

This attribute reflects the HTML disabled attribute.


Browser Support

All major browsers support the disabled attribute.

Note: The <input type="date"> element is not supported by Internet Explorer or Firefox browsers.


Syntax

Return the disabled attribute:

Set the disabled attribute:

Attribute Values

Value Description
true false Describes whether the date field is available. true - The date field is unavailable<br> false - Default. The date field is available.

Technical Details

| Return Value: | Boolean, returns true if the date field is available, otherwise returns false. | | --- | --- |


More Examples

Example

Check if the date field is available:

Example

Disable and enable the date field:


Related Pages

HTML Reference: HTML <input> disabled Attribute


❮ Prop Li Value Jsref Constructor Array ❯