2011-06-13 51 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