I\'m trying to find an easy way to check how many list items are left after a list has been filtered.
I can pick up when the list is being filtered via
$
You can also check for the presence of class ui-screen-hidden:
ui-screen-hidden
$('#theList li').length - $('#theList .ui-screen-hidden').length
To count the remaining li showing, use the psudo-selector of ":visible" like this...
$("#theList li:visible").length