Export HTML table to excel (xls) using jQuery plugin table2excel
table2excel is a very simple plugin made to export excel file directly from HTML table.
Source Code:
<!-- Include JS files -->
<script src="jquery-1.js" type="text/javascript"></script>
<script src="jquery.table2excel.min.js" type="text/javascript"></script>
<!-- Call the plugin -->
<script>
$(document).ready(function (){
$("button").click(function () {
$("#table2excel").table2excel({
name: "Excel file name goes here"
});
});
});
</script>
Get updates!
Follow @themgtechnologyCompatible Browsers
Chrome, Firefox, Safari, Opera, IE9+, Edge
Technologies Used
JS, jQuery
Author
Licence
MIT