You can use .filter()
to narrow down a set of elements to only those that match a selector (or a function), like this:
$listItems.filter(':visible')
You can use .filter()
to narrow down a set of elements to only those that match a selector (or a function), like this:
$listItems.filter(':visible')