A brief analysis of tr concealment and display problems
- 2020-03-30 02:12:43
- OfStack
var ReturnrReason=function(){
if($('#nextTransaction1 option:selected').text()==" Return the attachment for production "){
$("#ReturnrReason").css('display' ,'');
$("#ReturnrReasonNote").css('display' ,'');
}else{
$(":checkbox[name='workFlowParam.annexReturnReason']").attr("checked",false);//Empty the options
$("#ReturnRemarks").val("");
$("#ReturnrReason").css('display', 'none');
$("#ReturnrReasonNote").css('display' ,'none')
}
}
Code:
<tr id="ReturnrReason" style="display: none">
<td> Reasons for attachment return </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> Please note the reason for return in the attachment </td>
<td colspan="3" >
<textarea cols="90" id="ReturnRemarks" rows="2" name="workFlowParam.annexReturnreasonRemarks">${apprSugg.annexReturnreasonRemarks}</textarea>
</td>
</tr>