Filtering Backbone.js collection with checkboxes
filter a Backbone collection with a checkbox view
HTML
<script src="http://underscorejs.org/underscore.js"></script>
<script src="http://backbonejs.org/backbone.js"></script>
<script src="http://marionettejs.com/downloads/backbone.marionette.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.0/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.syphon/0.4.1/backbone.syphon.min.js"></script>
<div id="container"></div>
<div id="result"></div>
<script type="text-template" id="table-form">
<form>
<table class="table" style="margin-top: 30px;" >
<thead>
<tr style="border-bottom: 1px solid #bfbcc9;">
<th></th>
<th>Sunday</th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: right;">Breakfast</td>
<td><input name="b[0]" id="b0" type="checkbox" /></td>
<td><input name="b[1]" id="b1" type="checkbox" /></td>
<td><input name="b[2]" id="b2" type="checkbox" /></td>
<td><input name="b[3]" id="b3" type="checkbox" /></td>
<td><input name="b[4]" id="b4" type="checkbox" /></td>
<td><input name="b[5]" id="b5" type="checkbox" /></td>
<td><input name="b[6]" id="b6" type="checkbox" /></td>
...