title: HTML table export to Excel (XLS or CSV)
body: <p>I'm trying to export HTML table content to excel. I saw <a href="https://stackoverflow.com/q/17142427/2517028">this solution</a> which worked but not as I expected it (because <em><strong>I can't choose which columns to copy</strong></em>, and it <em><strong>doesn't works with big tables</strong></em>). <br><br>
  And another solution to copy by js and manually paste to excel file, which didn't work as well, and I don't really fancy this method.<br></p>
  <p>Shortly what I want is, export customized view of the table, not all columns. to show you an example of what I mean:
  <br><br>
  <strong>Here is the normal table view:</strong></p>
  <p><img src="https://i.stack.imgur.com/AISZL.jpg" alt="enter image description here" /></p>
  <p><strong>and Here is how what I want to show in excel:</strong></p>
  <p><img src="https://i.stack.imgur.com/HELRk.jpg" alt="enter image description here" /></p>
  <p><strong>But because I have hidden fields, the first method didn't work:</strong></p>
  <p><img src="https://i.stack.imgur.com/RJEf0.jpg" alt="enter image description here" /></p>
  <p>I would like a client side, cross-browser, workaround/solution,  considering that I have around 2,500 lines in the table.</p>