Answers for "textarea readonly vs disabled"

5

textarea readonly

<!-- textarea readonly property -->
<textarea readonly></textarea>
<!-- textarea readonly property with other property -->
<textarea name="someName" id="someId" readonly cols="width" rows="high"></textarea>
Posted by: Guest on October-14-2020
4

readonly vs disabled

- Readonly element is just not editable, but gets sent when the according form submits.
- Readonly elements can be focused (and getting focused when "tabbing" through a form).

- Disabled element isn't editable and isn't sent on submit.
- Disabled elements can't be focused (and getting focused when "tabbing" through a form).
Posted by: Guest on April-16-2020

Browse Popular Code Answers by Language