title: How can i make a hidden html table for exporting?
body: <p>I already have the code for exporting a html table to excel, but how can I <strong>hide</strong> the table and still access it with javascript?</p>
  
  <pre><code>&lt;div id="dataExportDiv" style="display:none"&gt;
     &lt;table&gt;
        ...table data here...
     &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But the resulting excel document doesn't have any data. I've tried exporting without hiding the table and it works, so I know the export javascript is valid.</p>