html对disabled的处理

来源:互联网 发布:mac的launchpad是什么 编辑:程序博客网 时间:2024/05/01 05:50
要对html的控件置入disabled的值的处理,例如

<input type="text" disabled name="qa" >
发现:
IE和firefox为了节省网络资源,disabled的控件的值,不会post到后台程序,自己省略掉了

解决方案:
改用javascript来设置就可以了
theForm.f_Best.disabled=false;

http://hi.baidu.com/maimouse/blog/item/1ae0bb1954b16179dbb4bd3b.html