title: Setting boolean variable when checkbox is clicked
body: <p>I got some HTML like so of a Bootstrap checkbox. By default the checkbox is on.</p>
  
  <pre><code>    &lt;div id="full" class="checkbox"&gt;
          &lt;label&gt;
              &lt;input type="checkbox" checked=""&gt; Include Full Classes
          &lt;/label&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I have this jQuery which detects whether the item is checked or non-checked</p>
  
  <pre><code>        var full;
          $('#full').change(function(){
              if(this.checked)
              {
                  full = true;
                  console.log(full);
              } else {
                  full = false;
                  console.log(full);
              }
          });
  </code></pre>
  
  <p>What I want to achieve is, when the checkbox is selected, it would set <code>full</code> to 1, and if it is unselected, set <code>full</code> to 0.</p>
  
  <p>I performed <code>console.log()</code> to the <code>full</code> variable, and in my output, all I got was <code>false</code>. </p>
  
  <p>I am wondering what I am doing wrong? </p>
  
  <p>This is the <a href="https://stackoverflow.com/questions/29933292/jquery-not-setting-variable-when-checkbox-is-checked">thread</a> I am referencing</p>