【问题标题】:How to use Jquery picnet Table filter?如何使用 Jquery picnet 表过滤器?
【发布时间】:2011-06-13 06:39:48
【问题描述】:

我已将 picnet 表过滤器脚本文件复制到我的 grails 应用程序 js 目录中。然后我包含了jquery.cookie.js picnet.jquery.tablefilter.js,然后在下面的行中包含了我的表的过滤器:

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

在要过滤的列的表头字段中,我给出了过滤器类型,例如, 过滤器类型='ddl'

但是我仍然没有得到过滤文本框的.only 表格来显示..我在哪里做错了?

【问题讨论】:

    标签: javascript jquery grails plugins filter


    【解决方案1】:

    你添加了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>
    

    【讨论】:

    • theader 无效,请尝试thead
    猜你喜欢
    • 1970-01-01
    • 2011-12-17
    • 1970-01-01
    • 2023-03-28
    • 2012-02-15
    • 2019-05-10
    • 1970-01-01
    • 1970-01-01
    • 2018-03-17
    相关资源
    最近更新 更多