I modified the code for the check boxes to hide the ones with (0) items after filtering.
var c = $(this), count = 0
if(result.length > 0){
count = jQ.where({ 'litType': c.val() }).count;
}
//hide the checkboxes if value is 0////////
if (count ==0) {
$('#'+c.val().replace(/\s/g, '')).hide();
} else {
$('#'+c.val().replace(/\s/g, '')).show();
}
c.next().text(c.val() + '(' + count + ')')
});```
I'm trying to figure out how to uncheck All and the items that are left so
the user can just pick the item they want. Currently they have to first
uncheck All, then check the item they actually want.
I modified the code for the check boxes to hide the ones with (0) items after filtering.