jquery datatables row count across pages

前端 未结 5 2016
礼貌的吻别
礼貌的吻别 2021-02-18 13:50

I\'m using the jQuery DataTables plug-in for my HTML table.

Is there a way to get the row count of the number of rows in my table across pages.

For example, if I

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-18 14:37

    If you are using the Scroller extension, and use search to filter down the rows to a subset, you can get the length of that subset like this

    $('#foo').dataTable().fnSettings().aiDisplay.length;
    

提交回复
热议问题