<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>注意</title>
</head><body>
强列建议慎用JKCombox,
请先检查是否可以用以下方案:
<hr/>
1.<br/>
文化程度:
<select onchange="if(this.value=='其它') this.nextSibling.style.display=''; else this.nextSibling.style.display='none'">
<option value=""></option><option value="小学">小学</option><option value="中学">中学</option><option value="大学">大学</option><option value="其它">其它</option> 
</select><input style="display:none">
<hr/>
2.<br/>
<input type=radio name=etype checked onclick="if(this.checked) { wenhuachendu1[0].disabled=false;wenhuachendu1[1].disabled=true;}">文化程度(常见):
<select id=wenhuachendu1 >
<option value=""></option><option value="小学">小学</option><option value="中学">中学</option><option value="大学">大学</option><option value="其它">其它</option> 
</select>
<br>
<input type=radio name=etype onclick="if(this.checked) { wenhuachendu1[0].disabled=true;wenhuachendu1[1].disabled=false;}" >文化程度(特别):
<input id=wenhuachendu1 disabled >
</body></html>

解决方案 »

  1.   

    function check()
    {
    f = document.form1;
    if(f.bamboo.value == "others")
    {
    o = document.createElement("input");
    o.id = "i";
    f.appendChild(o);
    }
    else
    {
    if(f.lastChild.id=="i") f.removeChild(f.lastChild);
    }
    }
      

  2.   

    if(document.all.bamboo.options[3].selected){
       document.forms[0].appendChild(document.createElement("<input type=text name=aa  id=bb>"));
       
     }
     if(!(document.all.bamboo.options[3].selected)){
       with(document.all("bb"))
       document.all.bb.removeNode(true);
       
     }