jQuery Isotope filter to no items?

后端 未结 4 1689
星月不相逢
星月不相逢 2021-01-05 22:58

I\'m using isotope to filter a list with multiple filters where it is possible that based on a combination of certain filters no items will be displayed. In this case I wan

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-05 23:38

    In addition, to work in Isotope 2 you have to check if it is visible/not visible instead of having the class isotope-hidden:

    Like this

    var numItems = $('.item:visible').length;
    

提交回复
热议问题