[jQuery] HTML Table Export JQuery Plugin
Based on the great work of: http://ngiriraj.com/pages/htmltable_export/demo.php# Github: https://github.com/kayalshri/tableExport.jquery.plugin
by Stefan N.
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://speedinvest.studio/apps/tableexport/tableExport.js"></script>
<script src="https://speedinvest.studio/apps/tableexport/jquery.base64.js"></script>
<button id="tableExport">
TEST
</button>
<table id="table123">
<tr>
<th>Column A</th>
<th>Column B</th>
<th>Column C</th>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
<td>Test</td>
</tr>
</table>
CSS
tr, td {
width: 100px;
border: 1px solid black;
padding: 5px;
}
JavaScript
$("#tableExport").click(function() {
$("#table123").tableExport({type:'csv',escape:'false'});
});