[求助]请教form表单radio发现的问题
请教高手,为什么javascript取不到表单单选按钮的变量?如下,为什么alert不显示"k"或者"a"?<script language="javascript">
function aa(){
alert(f1.r1.value)
}
</script>
<form name="f1">
<input type="radio" name="r1" value="k" onClick="aa();">kkk
<input type="radio" name="r1" value="a" onClick="aa()">aaa
</form>
function aa(){
alert(f1.r1.value)
}
</script>
<form name="f1">
<input type="radio" name="r1" value="k" onClick="aa();">kkk
<input type="radio" name="r1" value="a" onClick="aa()">aaa
</form>
[此贴子已经被作者于2006-10-29 12:38:14编辑过]