I just want to make filter with checkbox array using jquery. It works fine when only one checkbox is selected but when I select two or more checkboxes it doesnot show all the divs. Could you please help me to find my mistake.
http://jsfiddle.net/EducateYourself/vr8noyyL/19/
<div id="filters">
<div class="filterblock">
<input id="check1" type="checkbox" name="check" value="cola" class="category">
<label for="check1">Cola</label>
</div>
<div class="filterblock">
<input id="check2" type="checkbox" name="check" value="fanta" class="category">
<label for="check2">Fanta</label>
</div>
<div class="filterblock">
<input id="check3" type="checkbox" name="check" value="sprite" class="category">
<label for="check3">Sprite</label>
</div>
</div>