Search.../

readOnly

Sets or gets whether the value of the input element is read-only (cannot be modified by users).

Type:

booleanRead & Write

Was this helpful?

Get whether the value of the input element is read-only

Copy Code
1let isReadOnly = $w("#myTextInput").readOnly; // true
Set the value of the input element to be read-only

Copy Code
1$w("#myTextInput").readOnly = true;