javascript radio 联动效果
摘要:functioncheckradio(o,x){document.getElementsByName("inptB")[x-1].check...
<script>
function checkradio(o,x){
document.getElementsByName("inptB")[x-1].checked=o.checked
}
</script>
<input name="inptA" type="radio" id="inptA">aaa
<input name="inptA" type="radio" id="inptA">bbb
<input name="inptA" type="radio" id="inptA">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 联动效果】相关文章:
上一篇:
js 页面执行时间计算代码