Posted in Javascript onMarch 05, 2014
var ReturnrReason=function(){ if($('#nextTransaction1 option:selected').text()=="退回制作附件"){ $("#ReturnrReason").css('display' ,''); $("#ReturnrReasonNote").css('display' ,''); }else{ $(":checkbox[name='workFlowParam.annexReturnReason']").attr("checked",false);//清空选项 $("#ReturnRemarks").val(""); $("#ReturnrReason").css('display', 'none'); $("#ReturnrReasonNote").css('display' ,'none') } }
代码:
<tr id="ReturnrReason" style="display: none"> <td>附件退回原因</td> <td colspan="3" > <caf:checkboxlist name="workFlowParam.annexReturnReason" provider="simpleCode" cssClass="required"> <s:param name="type">210</s:param> </caf:checkboxlist> </td> </tr> <tr id="ReturnrReasonNote" style="display: none"> <td>附件退回原因备注</td> <td colspan="3" > <textarea cols="90" id="ReturnRemarks" rows="2" name="workFlowParam.annexReturnreasonRemarks">${apprSugg.annexReturnreasonRemarks}</textarea> </td> </tr>
浅析tr的隐藏和显示问题
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@