日期:2014-05-16 浏览次数:20416 次
?
取页面的值
?
<script>? ?
function choosedWhat(radio){? ?
for(var i=0;i<radio.length;i++) {? ?
??if(radio[ i].checked){? ?
? ?alert("you choose " + radio[ i].nextSibling.nodeValue + " radio button");
?? ??}? ?
}? ?
}? ?
</script>? ?
<INPUT type=radio name="radio" CHECKED>1-10 years old
<button onclick="choosedWhat(radio)">View</button>