var chkObjs = document.getElementsByName("vipcardnoselected");
for(var i=0;i<chkObjs.length;i++){
if(chkObjs[i].checked){
document.getElementById("vipcardnoselectedvalue").value=chkObjs[i].value;
break;
}
}
js遍历radio
最新推荐文章于 2022-12-25 12:46:36 发布