1 jsp里边
<html:radio property="billMethod" value="2" />
0)電子郵件
<html:radio property="billMethod" value="3" />
1)不要帳單
<html:radio property="billMethod" value="1" />
2)郵件($10)
<html:radio property="billMethod" value="4" />
2 判断如果选中'电子邮件'不为空
function pagerForm_onsubmit(aform){
var billMethods=aform["billMethod"];
if(billMethods[0].checked){ //选中第1个
if(checkNotEmpty(aform['email'],"電郵地址")==false)
return false;
if(check_email(aform['email'],"電郵地址")==false)
return false;
}
return true;
}
<html:radio property="billMethod" value="2" />
0)電子郵件
<html:radio property="billMethod" value="3" />
1)不要帳單
<html:radio property="billMethod" value="1" />
2)郵件($10)
<html:radio property="billMethod" value="4" />
2 判断如果选中'电子邮件'不为空
function pagerForm_onsubmit(aform){
var billMethods=aform["billMethod"];
if(billMethods[0].checked){ //选中第1个
if(checkNotEmpty(aform['email'],"電郵地址")==false)
return false;
if(check_email(aform['email'],"電郵地址")==false)
return false;
}
return true;
}