Sign inSign up

Frontend Table to Excel Export

Add-ons
2026-07-21 12:36 9 views • 0 downloads 1.0KB
Frontend Table to Excel Export

Usage

Include jQuery and table2excel on the page.

1
2
<script src="jquery.min.js"></script>
<script src="jquery.table2excel.min.js"></script>

Using the Plugin

1
2
3
4
5
6
$("#yourHtmTable").table2excel({
exclude: ".excludeThisClass",
name: "Worksheet Name",
filename: "SomeFile.xls", // Whether to include the file extension
preserveColors: false // Set to true to preserve background and font colors
});