title: How to make a button that will uncheck all checkboxes?
body: <p>I have this code that is possible to check/uncheck all checkboxes and check/uncheck a single checkbox.</p>
  
  <pre><code>  &lt;!DOCTYPE HTML&gt;
   &lt;html&gt;
     &lt;head&gt;
     &lt;meta charset="utf-8"&gt;
   &lt;title&gt;Persist checkboxes&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div&gt;
    &lt;label for="checkAll"&gt;Check all&lt;/label&gt;
    &lt;input type="checkbox" id="checkAll"&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;label for="option1"&gt;Option 1&lt;/label&gt;
    &lt;input type="checkbox" id="option1"&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;label for="option2"&gt;Option 2&lt;/label&gt;
    &lt;input type="checkbox" id="option2"&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;label for="option3"&gt;Option 3&lt;/label&gt;
    &lt;input type="checkbox" id="option3"&gt;
  &lt;/div&gt;
  
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://cdn.jsdelivr.net/jquery.cookie/1.4.0/jquery.cookie.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
    $("#checkAll").on("change", function() {
      $(':checkbox').not(this).prop('checked', this.checked);
    });
  
    $(":checkbox").on("change", function(){
      var checkboxValues = {};
      $(":checkbox").each(function(){
        checkboxValues[this.id] = this.checked;
      });
      $.cookie('checkboxValues', checkboxValues, { expires: 7, path: '/' })
    });
  
    function repopulateCheckboxes(){
      var checkboxValues = $.cookie('checkboxValues');
      if(checkboxValues){
        Object.keys(checkboxValues).forEach(function(element) {
          var checked = checkboxValues[element];
          $("#" + element).prop('checked', checked);
        });
      }
    }
  
    $.cookie.json = true;
    repopulateCheckboxes();
  &lt;/script&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>My question is that I want to make a button that will have a function that will clear or uncheck all checkboxes. Could some help me do that? Thanks!</p>