Is there a way to get the footable results of the filter function, such as number of rows showing?
Asked
Active
Viewed 1,897 times
1 Answers
3
I had the same question a few weeks ago. You can accomplish the following by doing this:
$('.footable tbody tr:not(.footable-filtered)').length

Code_Ed_Student
- 1,180
- 6
- 27
- 67
-
Note that if you don't want to select tr's outside of the footable, you can add in the child selector ">": $('.footable>tbody>tr:not(.footable-filtered)').length – fhilton May 24 '18 at 20:03
-
The above does not work with the current version of Footable any more - FooTable seems to remove everything not visible (also for pagination) from the DOM. – Ralf Jahr Oct 12 '18 at 12:21