我已经在我的grails app js目录中复制了picnet Table过滤器脚本文件。然后,我在下面的几行代码中包含了jquery.cookie.js picnet.jquery.tablefilter.js,以便在我的表中包含过滤器:
<script type="text/javascript">
$(document).ready(function() {
$('#logDisplayTable').tableFilter();});
</script>在要筛选的列的表头字段中,我指定了类似的筛选类型,filter- type ='ddl‘
但是我仍然没有得到过滤文本框的唯一表格显示..我在哪里做错了?
发布于 2011-11-13 22:31:31
你添加thead和tbody了吗
<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>https://stackoverflow.com/questions/6327320
复制相似问题