title: Getting HTML Form into PDF with jsPDF
body: <p>I have a form that users will be filling in partially. Once they have made all their selections I want to render the page as is to PDF and then have it sent as email. I just can't seem to wrap my head around the tutorials and examples for it. Currently I have jquery and jspdf referenced in my head section</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-3.1.0.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And this is my current function script - basically what's outlined in dozens of pages on here and elsewhere</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   $(function() {
     var specialElementHandlers = {
       '#editor': function (element,renderer) {
         return true;
      }
   };
   $('#cmd').click(function () {
      var doc = new jsPDF();
       doc.fromHTML($('#target').html(), 15, 15, {
        'width': 170,'elementHandlers': specialElementHandlers
        });
      });
        doc.output("dataurlnewwindow");
      });
    });
    &lt;/script&gt;
  </code></pre>
  
  <p>Next I start my form and have a DIV containing the entire page that I want rendered</p>
  
  <pre><code>&lt;body&gt;
  &lt;form action="" method="post"&gt;
  &lt;div id="target"&gt;
  </code></pre>
  
  <p>Followed by all the form inputs, then I close the DIV and have the button that should generate the PDF</p>
  
  <pre><code>&lt;/div&gt;
  &lt;p&gt;
  &lt;button id="cmd"&gt;Generate PDF&lt;/button&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I get nothing. No matter what I've done. The most I've gotten playing around with it is a blank page but  no content.  Any help steering me in the right direction would be greatly appreciated!</p>