title: Checkbox checked add class
body: <p>I want to add a class to my label of my checkbox if it's checked.</p>
  
  <p>Heres my html</p>
  
  <pre><code>&lt;ul class="checkbox-list"&gt;
      &lt;li&gt;&lt;label class="rounded-all"&gt;Google &lt;input class="checkbox-row" name="google" type="checkbox" value=""&gt;&lt;/label&gt;&lt;/li&gt;
      &lt;li&gt;&lt;label class="rounded-all"&gt;Bing &lt;input class="checkbox-row" name="bing" type="checkbox" value=""&gt;&lt;/label&gt;&lt;/li&gt;
      &lt;li&gt;&lt;label class="rounded-all"&gt;Facebook &lt;input class="checkbox-row" name="facebook" type="checkbox" value=""&gt;&lt;/label&gt; &lt;/li&gt; 
  &lt;/ul&gt;
  </code></pre>
  
  <p>I tried with this piece of code i got off here but doesn't seem too do the trick:</p>
  
  <pre><code>$(".checkbox-row").change(function() {
      $(this).closest('.checkbox-list li label').toggleClass("selected", this.checked);
  });
  </code></pre>