Press "Enter" to skip to content

Export Your HTML Table to Excel Format | jQuery excelExport

Export your HTML table to Excel format. excelExport is a very lightweight table to Excel converter that allows visitors to export and download table data as an XLS file.

export html table data to excel using jquery without plugin, convert html table to excel using javascript, export html table to excel xlsx using javascript, export html table with image to excel using jquery

How to make use of it:

1. Download the package deal and place the excel-export.min.js after loading the newest jQuery library.

<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="/path/to/excel-export.min.js"></script>

2. Call the function on the goal HTML table.

$('table').excelExport();
<table class="table table-bordered table-striped">
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
  <tr>
    <td>Ernst Handel</td>
    <td>Roland Mendel</td>
    <td>Austria</td>
  </tr>
  <tr>
    <td>Island Trading</td>
    <td>Helen Bennett</td>
    <td>UK</td>
  </tr>
  <tr>
    <td>Laughing Bacchus Winecellars</td>
    <td>Yoshi Tannamuri</td>
    <td>Canada</td>
  </tr>
  <tr>
    <td>Magazzini Alimentari Riuniti</td>
    <td>Giovanni Rovelli</td>
    <td>Italy</td>
  </tr>
</table>

3. Determine which components need to be ignored whereas exporting.

$('table').excelExport({
  toRemove: ['a','div','img','input']
});

4. Specify the title of the XLS file.

$('table').excelExport({
  title: 'jQuery Script'
});

Convert HTML Tables Into Excel, export html table to excel with css using jquery, export html table to excel with formatting, export large html table to excel using javascript


See Demo And Download

Official Website(Zenoo): Click Here

This superior jQuery/javascript plugin is developed by Zenoo. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.