title: Show/Hide DIV by Multiple Checkboxes
body: <p>I am trying to show/hide a form inside a div, conditional on multiple checkboxes. If all 3 are checked, the div contents should appear. If one or more are unchecked, the div contents should be hidden.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;link href="style/bootstrap.css" rel="stylesheet"&gt;
          &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              if ($('#checkbox1, #checkbox2, #checkbox3').is(:checked)) {
                 $('#purchaseForm').show();
              } else {
                 $('#purchaseForm').hide();
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="span6"&gt;
              I understand that...&lt;br&gt;
              I understand that...&lt;br&gt;
              I understand that...&lt;br&gt;&lt;br&gt;
  
          &lt;div id="purchaseForm"&gt;
              [form]
          &lt;/div&gt;          
          &lt;/div&gt;
  
          &lt;div class="span6"&gt;
              &lt;input name="checkbox1" id="checkbox1" value="" type="checkbox"&gt;&lt;br&gt;
              &lt;input name="checkbox2" id="checkbox2" value="" type="checkbox"&gt;&lt;br&gt;
              &lt;input name="checkbox3" id="checkbox3" value="" type="checkbox"&gt;&lt;br&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>