PHP基础
PHP教程
php框架
JavaScript
asp.net
AJAX
正则表达式
ASP
输入
banner图
图片脚本
导航/分类
IE在DOM操作有表单控件时的bug
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需刷新才能执行]