title: Validating a checkbox won't work
body: <p>I am not sure why this isn't working. I am confused and I don't know how to solve it. Please anyone guide me so that I can find out the solution. </p>
  
  <p>Thanks.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    terms=$('#terms').val();
          if (terms == '') {
              ...
          }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;input id="terms" class="inputcheckbox" name="terms" type="checkbox"&gt;</code></pre>
  </div>
  </div>
  </p>