title: How to set text decoration for "this".sibling
body: <p>I'd like to make a text decoration of `line-through' when a checkbox is checked and remove the decoration when the checkbox is unchecked.</p>
  
  <p>This is my js:</p>
  
  <pre><code>if ($(this).is(':checked')) {
      $(this).siblings('label').style.textDecoration = "line-through";
  } else {
      $(this).siblings('label').style.textDecoration = "none";
  }
  </code></pre>
  
  <p>With the current code I get the error of</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot set property 'textDecoration' of undefined</p>
  </blockquote>
  
  <p>and I'm assuming it is because it doesn't like my <code>this.siblings</code> string. </p>