21. What is the difference between disabled and readonly?
A disabled control is generally not editable, focusable, or included in normal form submission. A readonly control cannot normally be edited by the user but can remain focusable and its value can be submitted when applicable.
Key Takeaways
- disabled and readonly have different interaction and submission behavior.
- Choose based on the intended user experience.
Knowledge Check
Which control is generally excluded from form submission?