jsp页面的<html:radio property="rd_output_kbn" value="3" />选项1
<html:radio property="rd_output_kbn" value="2" />选项2
<html:radio property="rd_output_kbn" value="1" />选项3
<html:radio property="rd_output_kbn" value="0" />选项4
<html:radio property="rd_file_type" value="0" onclick="javascript:isSyuDoKoEnable();"/>CSV形式
<html:radio property="rd_file_type" value="1" onclick="javascript:isSyuDoKoEnable();"/>PDF形式<html:submit property="btn_output" styleClass="btn_search" value=" 提交 " onclick="setSubmit1()"/> function isSyuDoKoEnable(){
var flg;
var obj=document.all.rd_output_kbn;
if(document.all.rd_file_type[0].checked){
flg = false;
}
for(i=0;i<obj.length;i++){
obj[i].disabled=flg;
}
}
当选中"CSV形式"后,选项1到4的disabled值为false,这时再选中"选项1",按提交返回后,选项1的状态为"选中"
当选中"PDF形式"后,选项1到4的disabled值为true, 这时再选中"选项1",按提交返回后,选项1的状态为"未选中"有什么办法在当选中"PDF形式"后,选项1到4的disabled值为true, 这时再选中"选项1",按提交返回后,选项1的状态为"选中"急!!!!
<html:radio property="rd_output_kbn" value="2" />选项2
<html:radio property="rd_output_kbn" value="1" />选项3
<html:radio property="rd_output_kbn" value="0" />选项4
<html:radio property="rd_file_type" value="0" onclick="javascript:isSyuDoKoEnable();"/>CSV形式
<html:radio property="rd_file_type" value="1" onclick="javascript:isSyuDoKoEnable();"/>PDF形式<html:submit property="btn_output" styleClass="btn_search" value=" 提交 " onclick="setSubmit1()"/> function isSyuDoKoEnable(){
var flg;
var obj=document.all.rd_output_kbn;
if(document.all.rd_file_type[0].checked){
flg = false;
}
for(i=0;i<obj.length;i++){
obj[i].disabled=flg;
}
}
当选中"CSV形式"后,选项1到4的disabled值为false,这时再选中"选项1",按提交返回后,选项1的状态为"选中"
当选中"PDF形式"后,选项1到4的disabled值为true, 这时再选中"选项1",按提交返回后,选项1的状态为"未选中"有什么办法在当选中"PDF形式"后,选项1到4的disabled值为true, 这时再选中"选项1",按提交返回后,选项1的状态为"选中"急!!!!
disabled值为true,怎么选中"选项1"?
<html:radio property="rd_output_kbn" value="2" /> 选项2
<html:radio property="rd_output_kbn" value="1" /> 选项3
<html:radio property="rd_output_kbn" value="0" /> 选项4
<html:radio property="rd_file_type" value="0" onclick="javascript:isSyuDoKoEnable();"/> CSV形式
<html:radio property="rd_file_type" value="1" onclick="javascript:isSyuDoKoEnable();"/> PDF形式 <html:submit property="btn_output" styleClass="btn_search" value=" 提交 " onclick="setSubmit1()"/> function isSyuDoKoEnable(){
var flg;
var obj=document.all.rd_output_kbn;
if(document.all.rd_file_type[0].checked){
flg = false;
}
for(i=0;i <obj.length;i++){
obj[i].disabled=flg;
}
}
当选中"CSV形式"后,选项1到4的disabled值为false,这时再选中"选项1",按提交返回后,选项1的状态为"选中"
先选中"选项1",再选中"PDF形式"后,选项1到4的disabled值为true, 按提交返回后,选项1的状态为"未选中" 有什么办法在当选中"PDF形式"后,选项1到4的disabled值为true, 这时再选中"选项1",按提交返回后,选项1的状态为"选中" 急!!!!