Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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).
 
PREVIOUS NEXT
Tagged: #readonly #disabled
ADD COMMENT
Topic
Name
1+9 =