为什么我在检查单选框有没有选择后,不会执行下面输入框的检查工作?
nbjed 2004-11-07 03:20:12 var aa = document.getElementsByName("sa_status");
var c = 0;
for(var i=0;i<aa.length;i++)
{
if(aa[i].checked)
{
c = 1;
}
}
if(c==1)
{
return true;
}
else
{
alert('Please, select the Current Marital Status.');
return(false);
}
if(frm.sa_country.value=="")
{
alert("Please, select then country of Permanent Address.");
frm.sa_country.focus();
return(false);
}
sa_country就不会检查了,为什么?如何改正?