淺析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>
相關(guān)文章
chrome瀏覽器不支持onmouseleave事件的解決技巧
發(fā)現(xiàn)給div加的 onmouseleave事件在chrome 中不起效果,下面與大家分享下具體的解決方法,不會的朋友可以了解下哈,希望對大家有所幫助2013-05-05
JQuery 前臺切換網(wǎng)站的樣式實現(xiàn)
本文說的是在WordPress中怎樣利用JQuery在網(wǎng)站的前臺切換樣式的方法。或者這篇文章的方法大家可能不是太需要,因為我覺得這是解決我被主題樣式折騰到差不多分裂的原因及結(jié)果的最后手段。2009-06-06
JavaScript正則表達(dá)式替換字符串中圖片地址(img src)的方法
這篇文章主要介紹了JavaScript正則表達(dá)式替換字符串中圖片地址(img src)的方法,結(jié)合實例形式分析了JS正則替換的常用技巧與注意事項,需要的朋友可以參考下2017-01-01
給localStorage設(shè)置一個過期時間的方法分享
我們都知道localStorage不主動刪除,永遠(yuǎn)不會銷毀,那么如何設(shè)置localStorage的過期時間呢?下面這篇文章主要給大家介紹了關(guān)于如何給localStorage設(shè)置一個過期時間的相關(guān)資料,需要的朋友可以參考下2018-11-11

