Prop Week Readonly
# Input Week readOnly Property
[ Input Week Object](#)
## Example
Set the week field to read-only:
document.getElementById("myWeek").readOnly = true;
Output:
[Try it Β»](#)
* * *
## Definition and Usage
The readOnly property is used to set or return whether the week field is read-only.
A read-only field cannot be modified. However, the content of the field can be copied.
This property reflects the HTML readonly attribute.
**Tip:** To ensure the accuracy of form data, you can use the (#) property instead.
* * *
## Browser Support

The readOnly property is supported by all major browsers.
**Note:** Internet Explorer or Firefox browsers do not support the element.
* * *
## Syntax
Get the readOnly property:
_weekObject_.readOnly
Set the readOnly property:
_weekObject_.readOnly=true|false
## Property Values
| Value | Description |
| --- | --- |
| true|false | Describes whether the week field is read-only * true - The week field is read-only * false - Default. The week field is not read-only |
## Technical Details
| Return Value: | A Boolean. Returns true if the week field is read-only, otherwise returns false. |
| --- |
* * *
## More Examples
## Example
Check if the week field is read-only:
var x = document.getElementById("myWeek").readOnly;
The output of _x_ will be:
true
[Try it Β»](#)
* * *
## Related Pages
HTML Reference Manual: (#)
* * Input Week Object](#)
YouTip