-2
IE8/9에서 작동하지 않는 이유는 무엇입니까이 작품 :는 왜 연쇄
el = document.getElementById('STR');
if(el){
el.checked = true;
el2 = el.cloneNode(false);
el.parentNode.insertBefore(el2, el);
el2.setAttribute('id','');
el2.setAttribute('disabled','disabled');
el2.removeAttribute('name');
el.removeAttribute("disabled");
el.style.display="none";
}
하지만하지 : 마지막 조각이 완벽하게 작동 파이어 폭스/크롬에서
el = document.getElementById('STR');
if(el){
el.checked = true;
el2 = el.cloneNode(false);
el.parentNode.insertBefore(el2, el);
el2.setAttribute('id','');
el2.setAttribute('disabled','disabled').removeAttribute('name');
el.removeAttribute("disabled");
el.style.display="none";
}
.