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.

File Included

  • HTML Files
  • JS Files

Source Code:

  • code
  • source
  1. <!-- Include JS files -->
  2. <script src="jquery-1.js" type="text/javascript"></script>
  3. <script src="jquery.table2excel.min.js" type="text/javascript"></script>
  4. <!-- Call the plugin -->
  5. <script>
  6. $(document).ready(function (){
  7. $("button").click(function () {
  8. $("#table2excel").table2excel({
  9. name: "Excel file name goes here"
  10. });
  11. });
  12. });
  13. </script>
<!-- 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>
Platform Fee One-time fee
$5

Demo Buy Now
Or
A standard platform fee of $5 is required to download, or get a yearly subscription for unlimited access.
256
Downloads
(0) Reviews
Compatible Browsers

Chrome, Firefox, Safari, Opera, IE9+, Edge

Technologies Used

JS, jQuery

Author
Licence

MIT

Reviews and Comments


Please login to write the review