小编use*_*950的帖子

jQuery dataTables hide Show Entries text but show the dropdown list

jQuery dataTables hide "Show Entries" text but show the dropdown list in right side of page.

$('#myTable_reports_view').DataTable({
   "aoColumnDefs": [
       {"bSortable": false, "aTargets": [2,3,4,5,7]}
   ],
   "bFilter": false,
   "bInfo": false,
   "bLengthChange": true
});
Run Code Online (Sandbox Code Playgroud)

I am adding this code. The problem is "Show DDL entries" is getting hide but I want to hide the text part only, not the dropdown list.

datatables

4
推荐指数
1
解决办法
6656
查看次数

使用jquery获取anchor的值

<div class="dataTables_paginate paging_simple_numbers" id="myTable_reports_view_paginate">
    <a class="paginate_button previous disabled" aria-controls="myTable_reports_view" data-dt-idx="0" tabindex="0" id="myTable_reports_view_previous">&lt;&lt;</a>
    <span>
        <a class="paginate_button current" aria-controls="myTable_reports_view" data-dt-idx="1" tabindex="0">1</a>
        <a class="paginate_button " aria-controls="myTable_reports_view" data-dt-idx="2" tabindex="0">2</a>
        <a class="paginate_button " aria-controls="myTable_reports_view" data-dt-idx="3" tabindex="0">3</a>
        <a class="paginate_button " aria-controls="myTable_reports_view" data-dt-idx="4" tabindex="0">4</a>
        <a class="paginate_button " aria-controls="myTable_reports_view" data-dt-idx="5" tabindex="0">5</a>
        <span class="ellipsis">…</span>
    <a class="paginate_button " aria-controls="myTable_reports_view" data-dt-idx="6" tabindex="0">33</a>
    </span>
    <a class="paginate_button next" aria-controls="myTable_reports_view" data-dt-idx="7" tabindex="0" id="myTable_reports_view_next">&gt;&gt;</a>
</div>
Run Code Online (Sandbox Code Playgroud)

我的问题是如何使用 jquery 获取值 33。

jquery datatables

2
推荐指数
1
解决办法
2184
查看次数

标签 统计

datatables ×2

jquery ×1