Posted in Javascript onMarch 04, 2009
<script>
function checkradio(o,x){
document.getElementsByName("inptB")[x-1].checked=o.checked
}
</script>
<input name="inptA" type="radio" id="inptA" onclick="checkradio(this,1)">aaa
<input name="inptA" type="radio" id="inptA" onclick="checkradio(this,2)">bbb
<input name="inptA" type="radio" id="inptA" onclick="checkradio(this,3)">ccc
<br>
<input name="inptB" type="radio" id="inptB">111
<input name="inptB" type="radio" id="inptB">222
<input name="inptB" type="radio" id="inptB">333
javascript radio 联动效果
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@