Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jquery-excel-exporter with all npm packages installed. Try it out:

var jqueryExcelExporter = require("jquery-excel-exporter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jquery-excel-exporter v1.2.1

Export your HTML tables to Excel format.

excelExport

Export your HTML tables to Excel format.

Doc

  • Installation

Simply import JQuery & excel-export into your HTML.

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/jquery-excel-exporter@1.2.0/excel-export.min.js"></script>   
  • How to use Select your table(s) with a JQuery selector.
$('table').excelExport();
  • Options
{
    toRemove: ['a','div','img','input'], //Selectors to remove before exporting
    title: 'Exported_Table' //File name
}
  • Example
$('table').excelExport({
  toRemove: ['a.hidden','div'],
  title: "Table_Test"
});

Authors

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free