这是我在 Firefox 中通过 Firebug 发现的。
Values of disabled inputs will not be submitted
在其他浏览器中也是这样吗?
如果是这样,原因是什么?
disabled
输入不会提交数据。
Use the readonly
属性:
<input type="text" readonly />
来源在这里 http://blog.netgloo.com/2014/05/31/disabling-an-input-field-in-a-form-and-sending-data/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)