title: Export HTML table to PDF, WORD, PNG using TableExport.js
body: <p>I am trying to export a Table via PDF using the js provided by <a href="http://ngiriraj.com/pages/htmltable_export/demo.php" rel="nofollow">Ngiriraj Table Export Demo.</a>
  The code is:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
      &lt;script type="text/javascript" src="./js/tableExport.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery.base64.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/sprintf.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jspdf.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/base64.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.mobile-1.4.2.min.js"&gt;&lt;/script&gt;
  
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  
  &lt;button id="export" style="height: auto; width: auto;" onClick="$('#tableID').tableExport({type:'pdf',escape:'false'});"&gt;Click Here for PDF!&lt;/button&gt;
  
  
  &lt;table id="tableID"&gt;
  &lt;tr&gt;
  &lt;td&gt;ABC&lt;/td&gt;
  &lt;td&gt;BDE&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>However, when I click on the button, nothing happens. Console shows a error <strong>UNCAUGHT TYPE ERROR</strong> whenever the button is clicked.</p>