<input type=checkbox onclick="n.style.display='';w.style.display='none';">
<input type=checkbox onclick="w.style.display='';n.style.display='none';">
<select name="n">
</select>
<input name=w style="display:none">
<input type=checkbox onclick="w.style.display='';n.style.display='none';">
<select name="n">
</select>
<input name=w style="display:none">
<input type=radio name=r onclick="n.style.display='';w.style.display='none';"> 国内
<input type=radio name=r onclick="w.style.display='';n.style.display='none';"> 国外
<select name="n"><option>北京市
</select>
<input name=w style="display:none">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<input type=text name=t1 style="display: none"><br><br>
国内:<input type=checkbox name=c1 checked onclick="c1()"><br>
国外:<input type=checkbox name=c2 onclick="c2()"><script language=Javascript>
function c1()
{
if(document.all.c1.checked){
document.all.s1.style.display = "";
document.all.t1.style.display = "none";
document.all.c2.checked = false;}
else { document.all.s1.style.display = "none";}
}
function c2()
{
if(document.all.c1.checked){
document.all.s1.style.display = "none";
document.all.t1.style.display = "";
document.all.c1.checked = false;}
else { document.all.t1.style.display = "none";}
}
</script>
</select>
<input name=w style="display:none">
<select>没有写“style”?
<input>没有“type”?
这是怎么回事?
我很快就试,通过后马上给分!
多谢3星老大!
input没有type是默认type=text输入框
多谢了!