Advertise here

jQuery table2excel – Export HTML Table to Excel

October 01, 2024     3342     Tables
jQuery table2excel – Export HTML Table to Excel

table2excel is a jQuery plugin to export HTML table to Excel files.

Using the Plugin:
  1. Include jQuery and table2excel in your page
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
    <script src="//cdn.rawgit.com/rainabba/jquery-table2excel/1.1.0/dist/jquery.table2excel.min.js"></script>
  2. Call the plugin on the table
    $("#yourHtmTable").table2excel({
      exclude: ".excludeThisClass",
      name: "Worksheet Name",
      filename: "SomeFile.xls", // do include extension
      preserveColors: false // set to true if you want background colors and font colors preserved
    });

Related Plugins

Latest Plugins