请问为什么
<input name =aa value =a1 type =radio class=1>
<input name =aa value =a2 type =radio class=1>
<input type =button onclick="alert(aa.value);">
报出来的是未定义,而
<input name =aa value =a1 type =radio class=1><input type =button onclick="alert(aa.value);">
确能显示正确的值呢。
<input name =aa value =a1 type =radio class=1>
<input name =aa value =a2 type =radio class=1>
<input type =button onclick="alert(aa.value);">
报出来的是未定义,而
<input name =aa value =a1 type =radio class=1><input type =button onclick="alert(aa.value);">
确能显示正确的值呢。
<input name =aa value =a2 type =radio class=1>
<input type =button onclick="alert(aa[0].value);">
<input name =aa value =a2 type =radio class=1>
<input type =button onclick="alert(aa(0).value);">