Values of disabled inputs will not be submitted

前端 未结 7 2213

This is what I found by Firebug in Firefox.

Is it the same in other browsers?

If so, what\'s the reason for this?

相关标签:
7条回答
  • 2020-11-22 06:18

    disabled input will not submit data.

    Use the readonly attribute:

    <input type="text" readonly />
    

    Source here

    0 讨论(0)
提交回复
热议问题