js获取radio的值
function getRadioValue(objName)
{
var objs = document.getElementsByName(objName);
for(var i=0; i<objs.length; i++)
{
if(objs[i].tagName.toLowerCase()=='input' && objs[i].checked) return objs[i].value;
}
return null;
}
function getRadioValue(objName)
{
var objs = document.getElementsByName(objName);
for(var i=0; i<objs.length; i++)
{
if(objs[i].tagName.toLowerCase()=='input' && objs[i].checked) return objs[i].value;
}
return null;
}