Difference between "disabled" and "read only"

Support General Difference between "disabled" and "read only"Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26972
    Adam MAdam M
    Participant

    Hello,

    I wish to use a text field to provide an informational value, which will be useful filling other fields.

    I'm thinking of using an uneditable text field for this which I will populate (exactly how, will be a follow-up question). For this purpose, what is the difference between "disabled" and "read only"?

    Thanks.

    #26981
    Long NguyenLong Nguyen
    Moderator

    Hi Adam,

    Thank you for getting in touch.

    Both readonly and disable attributes have the same manner but there are some differences between them, please follow this topic for more information https://stackoverflow.com/questions/7730695/whats-the-difference-between-disabled-disabled-and-readonly-readonly-for-ht

    #26990
    Adam MAdam M
    Participant

    Thanks for the pointer!

    To recap from the top answer, these are W3C-defined features, with the important aspects being:

    A readonly element is just not editable, but gets sent when the according form submits. A disabled element isn't editable and isn't sent on submit.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.