最后單選框的時(shí)候?yàn)槭裁床荒芟裰耙粯樱?/h1>
hobby[j].checked=true;
這樣為什么不行哇?
hobby[j].checked=true;
這樣為什么不行哇?
hobby[j].checked=true;
這樣為什么不行哇?
2018-08-08
因?yàn)槟阍诖舜a前面沒有指明數(shù)組hobby【】,,正確操作見上面那位。
hobby[i].checked=true;
舉報(bào)
2018-08-22
var hobby=document.getElementsByName('hobby');
hobby[j-1].checked=true;