title: Delete checked checkboxes in jQuery
body: <p>I am trying to delete checked checkboxes in jQuery, but when i want to get state of checkbox i get error message.</p>
  
  <p><a href="http://jsfiddle.net/egbrc6mh/3/" rel="nofollow">jsfiddle</a></p>
  
  <pre><code>    &lt;div class="control-group"&gt;
  
  &lt;label class="checkbox"&gt;&lt;input value="0" type="checkbox"&gt;Message 0&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="1" type="checkbox"&gt;Message 1&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="2" type="checkbox"&gt;Message 2&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="3" type="checkbox"&gt;Message 3&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="4" type="checkbox"&gt;Message 4&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="5" type="checkbox"&gt;Message 5&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="6" type="checkbox"&gt;Message 6&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="7" type="checkbox"&gt;Message 7&lt;/label&gt;
  &lt;label class="checkbox"&gt;&lt;input value="8" type="checkbox"&gt;Message 8&lt;/label&gt;
  
  &lt;/div&gt; 
  
  
   &lt;button class="btn" type="button" id="deleteAcc"&gt;Delete&lt;/button&gt;
  </code></pre>
  
  <p>My jQuery code is:</p>
  
  <pre><code>$("#deleteAcc").on("click",function(){      
      $(".control-group label.checkbox").each(function(){
          if (this.children(":first").is(':checked')) {
              this.remove();
          }
      }); 
  });
  </code></pre>