菜鸟求解单选钮触发选择框
<script language= "javascript " type= "text/javascript ">
var a_city = new array();
a_city[0] = new array( "c0 ", "c0char ")
a_city[1] = new array( "c1 ", "c1char ")
a_city[2] = new array( "c2 ", "c2char ")
</script>
<script language= "javascript " type= "text/javascript ">
function oClick(m,n)
{
var o = getRef( "ctrl ");
if(!n)
{
o.disabled = "disabled ";
}
else
{
o.disabled = " ";
if(a_city.length > 1)
{
addSel2( "sel1 ",a_city,1);
}
}
}
</script>
<input type= "radio " name= "ctrl " value= "1 " onclick= "oClick(this.value,0) " /> 1
<select name= "sel1 " disabled= "disabled " id= "ctrl "> </select>
错在哪里
------解决方案--------------------兄弟你想要什么结果?
你写的什么代码呀?
array 错.
Array
getRef?addSel2?