title: Javascript Print function Breaks dropdown form submitting on change
body: <p>I'm  running two functions on the same page, one auto submits a single drop down form to update variables the other is used to print a section of the page. They both work as intended except after I use the print function it breaks the form submit function from working unless I reload the page. unsure why or how to resolve this.</p>
  <pre><code>    &lt;script&gt;
          $(function() {
              $('#daterange').change(function() {
                  this.form.submit();
              });
          });
      &lt;/script&gt;
      &lt;script&gt;
          function printDiv(printArea) {
              var printContents = document.getElementById(printArea).innerHTML;
              var originalContents = document.body.innerHTML;
  
              document.body.innerHTML = printContents;
  
              window.print();
  
              document.body.innerHTML = originalContents;
          }
      &lt;/script&gt;
  </code></pre>