c#中用了模板页后,如何用JS实现RadioButtonList取消选中,checkedNo(objName),

2024-11-27 00:54:35
推荐回答(1个)
回答(1):

function checkedNo(objName) {
var temp = document.getElementsByTagName("INPUT");
for (i = 0; i < temp.length; i++) {
if (temp[i].id.indexOf(objName) >= 0 && temp[i].checked) {
temp[i].checked = false;
}
}
}