Skip to content
Recommend our themes and earn 30% of our share of every sale you bring. Free to join.Earn by recommending our themes Become an affiliate

Export HTML table to excel (xls) using jQuery plugin table2excel

Updated 19 Aug 2018 256 downloads
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.

Files included

  • HTML Files
  • JS Files

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>

See it live

More code answers

Comments

Log in to leave a comment.