jquerymobile listview events - number of remaining items after filter applied

前端 未结 2 1520
刺人心
刺人心 2021-01-22 00:55

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

$         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-22 01:39

    You can also check for the presence of class ui-screen-hidden:

    $('#theList li').length - $('#theList .ui-screen-hidden').length
    

提交回复
热议问题