Checkbox filter

Checkbox filter

Hi guys.

I have a simple HTML table that I would like to filter with checkboxes. Here is my example:

As you can see, if you click on the checkbox, it filters the table and only shows rows with city you clicked on. But my problem is, it only works with one checkbox checked, if I check multiple it doesn't work.

Any ideas?