title: Download database result in a div as pdf. Save as pdf or download pdf on button click
body: <p>I'm loading two images and two tables from a database based on a dropdown list selection.<br>
  I'm using PHP &amp; MySQL. </p>
  
  <pre><code>&lt;select name="month" id="month"&gt;
  &lt;option&gt;Select Month&lt;/option&gt;
  &lt;option value="Jan"&gt;Jan&lt;/option&gt;
  &lt;option value="Feb"&gt;Feb&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;div id="contentDiv"&gt;two images and two tables&lt;/div&gt;
  
  &lt;input name="submit" type="submit" value="Download" /&gt;
  </code></pre>
  
  <p>I want to allow the user to download a PDF file containing only the contents (which are dynamically generated) inside the resulting <strong>DIV</strong> (<code>contentDiv</code>). How can I accomplish this? I tried many plugins, but haven't found a suitable one.</p>
  
  <p>Please help. Thanks in advance.</p>