2014-01-29 49 views
1

我使用jQuery插件tablesorter與粘滯標頭小部件。 在文檔中指出添加了一個名爲sticky-false的類。 但我不能設法隱藏在特定列的粘頭。,jquery tablesorter類sticky-false

我沒有選項設置在我的JavaScript和我開始像這樣tablesorter。 ...工程。

$('#table').tablesorter({widgets: ['zebra','stickyHeaders', 'filter'] } 

,並在我的表添加以下,...粘假不會工作,另兩個工作,但輸入框犯規dissapear

<th class="sticky-false filter-false sorter-false">Table</th> 

進出口使用的tablesorter 2.14.5和的tablesorter 2.8+部件

任何人都知道一種方法來隱藏輸入框?

回答

0

「sticky-false」類適用於整行,而不是單列。

<tr class="sticky-false"> 
    <th class="sorter-false" colspan="5">This row will not be sticky</th> 
</tr> 
<tr> 
    <th class="filter-false sorter-false">Column 1</th> 
    ... 
    <th>Column 5</th> 
</tr> 

如果要隱藏列過濾器,請使用以下的css:

.tablesorter-filter-row .disabled { display: none; } 
+0

感謝男,那肯定工作 – leo