文章目錄
- 1. Select radio to checked
- 2. Click button to change dom structure
bug描述
當象下例中那樣操作了表單radio/checkbox的DOM結構時(或者直接影響了他們的結構時)選中的checkbox/radio將會自動回復到預設狀態,有如點了reset按鈕一樣。 <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Expires" content="0"><meta http-equiv="ImageToolbar" content="no"><meta http-equiv="Creator.name" content="Rank, BlueDestiny, never-online"><br /><style type="text/css" title="default" media="screen">/*<![CDATA[*/body { font-size:80%; line-height:1.5; }body, button { font-family:arial; }button { padding:0 0.3em 0 0.3em; }h1, h3 { margin:0; padding:0; }h1 { font-size:2.3em; }h3 { font-size:1.3em; }form { display:inline-block; }div.link { padding:1em; }div.content { background:#ffc; padding:1em; border:1px solid #222; margin:1em 0 1em; }#rdoWrapper { }#hd { text-align:center; }/*]]>*/</style> IE form control bug from: <em>never-online weblog</em> 1. Select radio to checked 2. Click button to change dom structure <p class="p"><button type="button" onclick="handleChangeDom()">test</button></p><p>