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.
<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"><<</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">>></a>
</div>
Run Code Online (Sandbox Code Playgroud)
我的问题是如何使用 jquery 获取值 33。