Prop Date Disabled
# Input Date disabled Property
[ Input Date Object](#)
## Example
Disable the date field:
document.getElementById("myDate").disabled = true;
The result could be:
[Try it Β»](#)
* * *
## Definition and Usage
The disabled property sets or returns whether a date field is disabled.
Elements with the disabled property are unusable and unclickable. Disabled elements are usually rendered in gray in browsers.
This property reflects the HTML disabled attribute.
* * *
## Browser Support

All major browsers support the disabled property.
**Note:** Internet Explorer or Firefox do not support the element.
* * *
## Syntax
Get the disabled property:
_inputdateObject_.disabled
Set the disabled property:
_inputdateObject_.disabled=true|false
## Property Values
| Value | Description |
| --- | --- |
| true|false | Specifies whether the date field is disabled. * true - The date field is disabled. * false - Default. The date field is enabled. |
## Technical Details
| Return Value: | A Boolean. Returns true if the date field is disabled, otherwise false. |
| --- |
* * *
## More Examples
## Example
Check if the date field is disabled:
var x = document.getElementById("myDate").disabled;
The _x_ output will be:
true
[Try it Β»](#)
## Example
Disable and enable the date field:
function disableBtn() {
document.getElementById("myDate").disabled = true;
}
function undisableBtn() {
document.getElementById("myDate").disabled = false;
}
[Try it Β»](#)
* * *
## Related Pages
HTML Reference: (#)
* * Input Date Object](#)
YouTip