浅析tr的隐藏和显示问题
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>