HTML DOM Input Week disabled property
Definition and Usage
disabled property sets or returns the week whether the field is disabled.
Use the disabled attribute elements are not available and can not be clicked. Disabled elements are usually displayed on the browser gray.
This property reflects the HTML disabled property.
Browser Support
All major browsers support the disabled attribute
Note: Internet Explorer or Firefox browser does not support <input type = "week"> element.
grammar
Returns disabled properties:
weekObject .disabled
Set the disabled attribute:
weekObject .disabled = true | false
Property Value
value | description |
---|---|
true | false | Description week field is available.
|
technical details
return value: | Boolean value, if the field is unavailable week returns true, false otherwise |
---|
More examples
Examples
View week field is available:
var x = document.getElementById ( "myWeek") disabled.;
x The output is: true
try it"
Examples
Disable or enable week field:
function disableBtn () {
. Document.getElementById ( "myWeek") disabled = true;
}
function undisableBtn () {
. Document.getElementById ( "myWeek") disabled = false;
}
. Document.getElementById ( "myWeek") disabled = true;
}
function undisableBtn () {
. Document.getElementById ( "myWeek") disabled = false;
}
try it"
Related Pages
HTML Reference Manual: HTML <the INPUT> Disabled Property
Input Week Objects