jquery DataTables. How to get filtered (visible) rows

后端 未结 7 1361
盖世英雄少女心
盖世英雄少女心 2021-02-07 02:28

I have a button that apply filter to jquery datatable

$(\"#buttonFilter\").button().click(function() {
                if (lboxColor.val() != null) {
                    


        
7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 03:09

    Just in case you want a collection of nodes (DOM elements) just like fngetNodes(), you can use the '$' instead of the '_' like this table.$('tr', {"filter":"applied"});

    the '_' returns a collection of 'TR' (html elements).

提交回复
热议问题