我有一个HTML表格:
<table id="indicationResults" class="resultsGrid" cellpadding="2" cellspacing="0" >
表格中的某些单元格仅包含字符串,取决于特定权限。例如,这是一行仅在用户拥有特定权限时才在每个单元格中放置标签和数据的示例:
<tr>
<td id="DV01Label" class="resultsCell">
<%= CustomHelpers.StringWithPermission("DV01", new string[] { PERMISSIONS.hasALM })%>
</td>
<td id="DV01Value" class="alignRight">
<%= CustomHelpers.StringWithPermission(Model.Results.DV01.ToString(Chatham.Web.Data.Constants.Format.CurrencyCentsIncludedFormatString), new string[] { PERMISSIONS.hasALM })%>
</td>
<td id="DV01Fixed" class="alignRight">
<%= CustomHelpers.StringWithPermission(Model.Results.FixedComponent().DV01.ToString(Chatham.Web.Data.Constants.Format.CurrencyCentsIncludedFormatString), new string[] {PERMISSIONS.hasALM})%>
</td>
<td id="DV01Floating" class="alignRight">
<%= CustomHelpers.StringWithPermission(Model.Results.FloatingComponent().DV01.ToString(Chatham.Web.Data.Constants.Format.CurrencyCentsIncludedFormatString), new string[] { PERMISSIONS.hasALM })%>
</td>
</tr>
在页面加载后,如何使用JQuery返回到这个特定的表格并删除所有完全为空的行,以便不再看到一个微小的空行而是完全没有了。