function getRadioBoxValue(radioName)
{
var obj = document.getElementsByName(radioName); //这个是以标签的name来取控件
for(i=0; i<obj.length;i++) {
if(obj[i].checked) {
return obj[i].value;
}
}
return "undefined";
}
转载于:https://my.oschina.net/wangwang110/blog/10166