title: Find All Checked Checkboxes in Backbone
body: <p>I'm popping up a Bootstrap modal that allows users to select a number of checkboxes. Then in my View I want to loop through each and check to see if they are checked.</p>
  
  <p>Here's my modal code:</p>
  
  <pre><code>&lt;div class="modal fade" id="ethnicityModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
    &lt;div class="modal-dialog"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
          &lt;h4 class="modal-title" id="myModalLabel"&gt;Ethnicity Targeting&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;h5&gt;Select ethnicities that should be included:&lt;/h5&gt;
          &lt;input type="checkbox" name="caucasian"&gt;&lt;label for="#caucasian"&gt; Caucasian&lt;/label&gt;
          &lt;br&gt;
          &lt;input type="checkbox" name="black"&gt;&lt;label for="#black"&gt; African American&lt;/label&gt;
          &lt;br&gt;
          &lt;input type="checkbox" name="hispanic"&gt;&lt;label for="#hispanic"&gt; Hispanic/Latino&lt;/label&gt;
          &lt;br&gt;
          &lt;input type="checkbox" name="middleEastern"&gt;&lt;label for="#middleEastern"&gt; Middle Eastern&lt;/label&gt;
          &lt;br&gt;
          &lt;input type="checkbox" name="pacific"&gt;&lt;label for="#pacific"&gt; Pacific Islander&lt;/label&gt;
          &lt;br&gt;
          &lt;input type="checkbox" name="nativeAmerican"&gt;&lt;label for="#nativeAmerican"&gt; Native American/Alaskan&lt;/label&gt;
          &lt;br&gt;
          &lt;input type="checkbox" name="other"&gt;&lt;label for="#other"&gt; Other&lt;/label&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-primary saveEthnicity" data-dismiss="modal"&gt;Save&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And in my view:</p>
  
  <pre><code>events:
     "click .saveEthnicity": "saveEthnicity"
  
  saveEthnicity: (e) -&gt;
      console.log e.currentTarget.parentElement.parentNode.children[1].children
  </code></pre>
  
  <p>So the <code>e.currentTarget.parentElement.parentNode.children[1].children</code> returns me the array of children elements. But I can't seem to loop through them. I tried </p>
  
  <pre><code>e.currentTarget.parentElement.parentNode.children[1].children.each (child) -&gt;
    console.log child
  </code></pre>
  
  <p>But that throws an error. Any idea how I can get to each input so I can do a <code>.checked()</code> on it?</p>