Prop Week Disabled
# Input Week disabled Property
[ Input Week Object](#)
## Example
Disable the week field:
document.getElementById("myWeek").disabled = true;
Output:
[Try it Β»](#)
* * *
## Definition and Usage
The disabled property is used to set or return whether a week field is disabled.
An element with the disabled property is unusable and unclickable. Disabled elements are usually rendered in gray in the browser.
This property reflects the HTML disabled attribute.
* * *
## Browser Support

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