Skip to content

Instantly share code, notes, and snippets.

@aonrobot
Created March 12, 2018 07:33
Show Gist options
  • Save aonrobot/f18cef994276966e49db33e942c71cd5 to your computer and use it in GitHub Desktop.
Save aonrobot/f18cef994276966e49db33e942c71cd5 to your computer and use it in GitHub Desktop.
<button class="btn btn-warning" id="table2excel">Export to Excel</button>
<table id="r3tb1" class="table">
<thead>
...
</thead>
<tbody>
...
</tbody>
</table>
<script>
$('#table2excel').click(function(){
table2excel('r3tb1');
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment