如何根据列值隐藏html表行?

时间:2014-04-02 10:48:14

标签: jsp jstl

我有一个html表,我需要隐藏列值为39的所有行(value_type == 39)。

以下是我的表结构:

<c:forEach items="${rapportkonf.conf}" var="conf" varStatus="clist">    
    <div id="tabs-${conf.value}">
    <table style="font-size: 12px;"><tr><th style="display: none;">Configuration_id</th><th style="display: none;">Types_id</th><th style="display: none;">Sort_no</th><th>Value</th><th>ValueType</th><th>Fromdate</th><th>Todate</th></tr>
    <c:forEach items="${conf.attl}" varStatus="status">  
    <tr>
      <td style="display: none;"> 
      <form:input path="clist[${clist.index}].attl[${status.index}].configuration_id" readonly="true"/></td>
      <td style="display: none;"> 
      <form:input path="clist[${clist.index}].attl[${status.index}].types_id" readonly="true"/></td>
      <td style="display: none;"> 
      <form:input path="clist[${clist.index}].attl[${status.index}].sort_no" readonly="true"/></td>
      <td> 
      <form:input path="clist[${clist.index}].attl[${status.index}].value" /></td>
      <td>  
      <form:input path="clist[${clist.index}].attl[${status.index}].value_type" readonly="true"/></td>
      <td>
      <form:input path="clist[${clist.index}].attl[${status.index}].fromdate" readonly="true"/></td>
      <td> 
      <form:input path="clist[${clist.index}].attl[${status.index}].todate" readonly="true"/></td>
      <td>
    </tr>
</c:forEach>

请告诉我如何在当前情况下隐藏行。

1 个答案:

答案 0 :(得分:0)

您必须相应地编写查询。尝试使用Except

相关问题