I have a form where some input elements’ disabled property set to disabled. I noticed that with the presence of disabled=disabled, they are not submitted on the server. Why does it behave like that?
I have a form where some input elements’ disabled property set to disabled .
Share
Because that is what
disabledis supposed to do. It effectively removes a control from the form while leaving a visible placeholder.Perhaps you want readonly instead.