Forms
Read-only versus disabled fields
Named read-only text inputs remain in form data; disabled controls are omitted. Neither is authorization.
Formal Syntax & Structure
react syntaxreact
<input name="code" value="DEMO-1" readOnly />Working Example
Example Snippetreact
<input name="locked" disabled />