Easy Tutorial
❮ Jsref Reverse Prop Style Backgroundimage ❯

Input Week readOnly Property

Input Week Object

Example

Set the week field to read-only:

Output result:


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, its content can be copied.

This property reflects the HTML readonly attribute.

Tip: To ensure the accuracy of form data, you can use the disabled property as an alternative.


Browser Support

All major browsers support the readOnly property.

Note: The <input type="week"> element is not supported in Internet Explorer or Firefox.


Syntax

Return the readOnly property:

Set the readOnly property:

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: | Boolean, returns true if the week field is read-only, otherwise returns false. | | --- | --- |


More Examples

Example

Check if the week field is read-only:


Related Pages

HTML Reference: HTML <input> readonly Attribute


❮ Jsref Reverse Prop Style Backgroundimage ❯