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;
}
js获取radio的值
最新推荐文章于 2021-12-20 19:29:22 发布