bug描述 当象下例中那样操作了表单radio/checkbox的DOM结构时(或者直接影响了他们的结构时)选中的checkbox/radio将会自动恢复到默认状态,有如点了reset按钮一样。
Rank's HTML document
/**/
IE form control bug
from: never-online weblog
1. Select radio to checked
radio1
radio2
radio3
radio4
2. Click button to change dom structure
test
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]解决方法 可以在操作DOM之前,用defaultChecked来设置checked的值。
Rank's HTML document
/**/
fixed IE form control bug
from: never-online weblog
1. Select radio to checked
radio1
radio2
radio3
radio4
2. Click button to change dom structure
test
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
推荐阅读
js调试工具 Javascript Debug Toolkit 2.0.0版本发布
1. Javascript 语法着色 2. 在eclipse中调试javascript 3. 查看javascript表达式 4. 语法错误定位 5. 解决通过超链接等方式打开的html页面不能使用的问题 6. 解决上个版本中的bug>>>详细阅读
本文标题:IE在DOM操作有表单控件时的bug
地址:http://www.17bianji.com/kaifa2/JS/29145.html
1/2 1