jquerymobile listview events - number of remaining items after filter applied

前端 未结 2 1518
刺人心
刺人心 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:56

    To count the remaining li showing, use the psudo-selector of ":visible" like this...

    $("#theList li:visible").length

提交回复
热议问题