2011-06-13 29 views
0

我已經在我的grails應用程序js目錄中複製了picnet表格過濾器腳本文件。然後我已經包括jquery.cookie.js picnet.jquery.tablefilter.js然後,下面線以包括濾波器,用於我的表:如何使用Jquery picnet表格過濾器?

<script type="text/javascript"> 
$(document).ready(function() {                 
$('#logDisplayTable').tableFilter();}); 
</script> 

在待過濾我給濾波器型柱狀, 濾波器型的表頭字段=「DDL」

但我仍然沒有得到篩選文本框's.only表中獲取顯示..我在哪裏做錯了?

回答

0

你添加了theadtbody

<table> 
<thead>//this is important 
<th>Your Header1</th> 
<th>Your Header2</th> 
</thead> 
<tbody>//and this 
<tr><td>value1</td></tr> 
<tr><td>value2</td></tr> 
</tbody> 
</table> 
+1

'theader'無效,請嘗試'thead' – chris 2012-11-07 00:50:50