2014-04-02 66 views
0

我有一個HTML表,我需要隱藏列值爲39(value_type == 39)的所有行。如何根據列值來隱藏html表格行?

下面是我的表結構:

<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> 

請告訴我如何隱藏在現狀行。

+0

一些代碼將幫助我們幫助你... http://jsfiddle.net/。你試過什麼了? – Scott

回答