Open ready4data opened 5 years ago
Hi @ready4data did you find any solution? And I'm interested in that.
I did do this which works but produces some unexpected filtering. I have two different sections with checkboxes Literature Type and Product Type After entering your search terms, the page refreshes and the checkboxes are all unchecked. If I check off an item it either area, it works. If I select an item in one area and then the other, it gives unexpected results in the search.
function afterFiltered(){//Unchecks the boxes after a search
$('#litType_criteria :checkbox').prop('checked', false);
/$('#prodType_criteria :checkbox').prop('checked', false);
}
And added that function to the callback.
Thanks for the answer. But if all are unchecked by default, when you checked one of the checkbox, the counter of the others is reset(will be 0). Did you find any solution to this?
I modified the code for the check boxes to hide the ones with (0) items after filtering.