| 发表于:2008-02-16 14:58:07 楼主 |
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的状态为"选中" 急!!!! |
|
|
|
|