var a = document.getElementsByTagName("input");
for (var i=0; i<a.length; i++){
if ((a[i].type == "radio")&&( a[i].checked ))
alert(a[i].value)
或
<input type=radio onclick="if(this.checked)alert(this.value)>
for (var i=0; i<a.length; i++){
if ((a[i].type == "radio")&&( a[i].checked ))
alert(a[i].value)
或
<input type=radio onclick="if(this.checked)alert(this.value)>
你好!謝謝幫忙。
我最近正在學javascript,請問有沒有學習javascript的好網站,介紹給我好嗎?