{"id":3277,"date":"2024-01-20T16:53:00","date_gmt":"2024-01-20T16:53:00","guid":{"rendered":"https:\/\/codehim.com\/?p=3277"},"modified":"2024-01-22T14:53:55","modified_gmt":"2024-01-22T09:53:55","slug":"export-html-table-to-excel-using-jquery-plugin","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/","title":{"rendered":"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins"},"content":{"rendered":"<section class=\"cm-tb\">\n<div class=\"cm-row\">\n<p class=\"plugin-intro\">The <code>TableHTMLExport<\/code> is a lightweight jQuery plugin that helps you to export HTML table to Excel <code>.csv<\/code> file. It converts table data into Excel sheet and force the browser to download the generated file.<\/p>\n<p>The plugin can also export HTML table into TXT, JSON or PDF file. But in this tutorial, we&#8217;ll focus on Excel exportation using this jQuery plugin.<\/p>\n<\/div>\n<\/section>\n<section class=\"codehim-wrapper\">\n<div class=\"d-row\">\n<h2>Plugin Preview<\/h2>\n<figure class=\"item-preview\"><div id=\"featured-img-id\"><img decoding=\"async\" src=\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg\" alt=\"Export HTML Table to Excel using jQuery Plugin\" \/><\/div><\/figure>\n<div class=\"item-like-share\"><div class=\"codehim-share\"> <span class=\"share-title\">Share this:<\/span> <span class=\"share-btn-container\"> <\/span> <\/div><\/div>\n<p><span class=\"small-text\"><a href=\"https:\/\/codehim.com\/how-to-start-using-jquery\/\"> How to start using jQuery?<\/a><\/span><\/p>\n<p><span class=\"large-text\"><a href=\"https:\/\/codehim.com\"> More jQuery Top, Best and New Plugins <\/a><\/span><\/p>\n<p><span class=\"small-text\"><a href=\"https:\/\/codehim.com\/tag\/top-100\/\"> Top 100 jQuery Plugins<\/a><\/span><\/p>\n<\/div>\n<div class=\"d-row\">\n<h2>Plugin Overview<\/h2>\n<table class=\"plugin-overview\">\n<tbody>\n<tr>\n<td><i class=\"fa fa-plug\"><\/i> Plugin:<\/td>\n<td>TableHTMLExport<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-user\"><\/i> Author:<\/td>\n<td>Furioso Jack<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-file-text-o\"><\/i> Licence:<\/td>\n<td><a class=\"external\" href=\"https:\/\/opensource.org\/licenses\/MIT\" target=\"_blank\" rel=\"noopener noreferrer\"> MIT Licence<\/a><\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-calendar-check-o\"><\/i> Published:<\/td>\n<td class=\"publish-date\">January 20, 2024<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-github\"><\/i>Repository:<\/td>\n<td><a class=\"external\" href=\"https:\/\/github.com\/FuriosoJack\/TableHTMLExport\" target=\"_blank\" rel=\"noopener noreferrer\">Fork on GitHub <\/a><\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-link\"><\/i> Dependencies:<\/td>\n<td><a class=\"external\" href=\"https:\/\/jquery.com\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">jQuery 1.3.1 <\/a> or Latest version and <a class=\"external\" href=\"https:\/\/fontawesome.com\/download\" target=\"_blank\" rel=\"noopener noreferrer\"> Font Awesome 4 <\/a> (Optional)<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-file-code-o\"><\/i> File Type:<\/td>\n<td>zip archive (HTML, CSS &amp; JavaScript )<\/td>\n<\/tr>\n<tr>\n<td><i class=\"fa fa-file-archive-o\"><\/i> Package Size:<\/td>\n<td>7.38 KB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"cd-action\"><a class=\"btn demo\" href=\"\/demo\/html-table-to-excel-jquery\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"> Demo <\/a><a class=\"btn download\" href=\"\/download\/html-table-to-excel-jquery.zip\" rel=\"nofollow\"> Download<\/a><\/div>\n<\/div>\n<\/section>\n<h2>How to Use jQuery Plugin to Export HTML Table to Excel<\/h2>\n<p>1. To create table export functionality, first of all load jQuery JavaScript library and <code>TableHTMLExport<\/code> plugin JS file into your HTML document.<\/p>\n<pre class=\"prettyprint lang-html\">&lt;!-- jQuery --&gt;\r\n&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.4.1.min.js\"&gt;&lt;\/script&gt;\r\n \r\n&lt;!-- Table HTML Export Js --&gt;\r\n&lt;script src=\"js\/tableHTMLExport.js\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<p><b>Tip: <\/b> <i>You can also load plugin through <abbr title=\"Content Delivery Network\">CDN<\/abbr> into your project.<\/i><\/p>\n<pre class=\"prettyprint lang-html\">&lt;script src=\"https:\/\/gitcdn.xyz\/repo\/FuriosoJack\/TableHTMLExport\/v1.0.0\/src\/tableHTMLExport.js\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>2. Add a unique id (or class) to your HTML table that you want to export into excel sheet.<\/p>\n<pre class=\"prettyprint lang-html\">  &lt;table id=\"myTable\"&gt;\r\n  &lt;thead&gt;\r\n    &lt;tr&gt;\r\n      &lt;th&gt;Company&lt;\/th&gt;\r\n      &lt;th&gt;Contact&lt;\/th&gt;\r\n      &lt;th class='acciones'&gt;Country&lt;\/th&gt;\r\n  &lt;\/tr&gt;    \r\n  &lt;\/thead&gt;\r\n  &lt;tbody&gt;\r\n    &lt;tr&gt;\r\n      &lt;td&gt;CodeHim&lt;\/td&gt;\r\n      &lt;td id=\"primero\"&gt;Maria Anders&lt;\/td&gt;\r\n      &lt;td class=\"acciones\"&gt;Germany&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr&gt;\r\n      &lt;td&gt;Ernst Handel&lt;\/td&gt;\r\n      &lt;td&gt;Roland Mendel&lt;\/td&gt;\r\n      &lt;td class=\"acciones\"&gt;Austria&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr&gt;\r\n      &lt;td&gt;Island Trading&lt;\/td&gt;\r\n      &lt;td&gt;Helen Bennett&lt;\/td&gt;\r\n      &lt;td&gt;UK&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr id=\"ultimo\"&gt;\r\n      &lt;td&gt;Magazzini Alimentari Riuniti&lt;\/td&gt;\r\n      &lt;td&gt;Giovanni Rovelli&lt;\/td&gt;\r\n      &lt;td&gt;Italy&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n  &lt;\/tbody&gt;  \r\n&lt;\/table&gt;\r\n<\/pre>\n<p>3. Now, create a button that will be used to export your HTML table into Excel <code>.csv<\/code> file.<\/p>\n<pre class=\"prettyprint lang-html\">&lt;button class=\"export-btn\"&gt;&lt;i class=\"fa fa-file-excel-o\"&gt;&lt;\/i&gt; Export to Excel&lt;\/button&gt;\r\n<\/pre>\n<p><b>Note:<\/b> <i> The <code>&lt;i class=\"fa fa-file-excel-o\"&gt;&lt;\/i&gt;<\/code> require Font Awesome CSS file to show excel file icon in export button.<\/i><\/p>\n<p>3.1 Also Load Font Awesome if not already done.<\/p>\n<pre class=\"prettyprint lang-html\">&lt;!-- Font Awesome 4--&gt;\r\n&lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/font-awesome\/4.7.0\/css\/font-awesome.min.css\" rel=\"stylesheet\" integrity=\"sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN\" crossorigin=\"anonymous\"&gt;\r\n<\/pre>\n<p>4. Style your HTML table and export button with CSS (Optional).<\/p>\n<pre class=\"prettyprint lang-css\">table {\r\n  border-collapse: collapse;\r\n  width: 100%;\r\n}\r\n\r\nth, td {\r\n  text-align: left;\r\n  padding: 8px;\r\n}\r\n\r\ntr:nth-child(even){background-color: #f2f2f2}\r\n\r\nth, .export-btn {\r\n  background-color: #81BD5D;\r\n  color: #fff;\r\n}\r\n.export-btn{\r\n  padding: 10px 16px;\r\n  border: 0;\r\n  outline: 0;\r\n  font-size: 18px;\r\n  border-radius: 4px;\r\n  margin: 10px auto;\r\n  cursor: pointer;\r\n  \r\n }\r\n.export-btn:hover{\r\n  opacity: 0.9;\r\n\r\n }\r\n<\/pre>\n<p>5. Finally, initialize the plugin in jQuery document ready function.<\/p>\n<p><b>Tip: <\/b> <i>Use the click event to export file on button click. Otherwise file will be downloaded on body load. <\/i><\/p>\n<pre class=\"prettyprint lang-js\">$(document).ready(function(){\r\n   $(\".export-btn\").click(function(){  \r\n     $(\"#tableCompany\").tableHTMLExport({\r\n      type:'csv',\r\n      filename:'codehim-html-table-to-excel.csv',\r\n    });\r\n  });\r\n});\r\n<\/pre>\n<h2>Advance Configuration Options for Table HTML Export Plugin<\/h2>\n<p>The following are some advance configuration options to create \/ customize &#8220;Table HTML Export&#8221;.<\/p>\n<table>\n<tbody>\n<tr>\n<th>Option<\/th>\n<th>Description, Default, Type<\/th>\n<\/tr>\n<tr>\n<td><code> type<\/code><\/td>\n<td>This option define the type of file in which you want to export HTML table. Type: String.<br \/>\nAvailable Options are: &#8216;csv&#8217;, | &#8216;txt&#8217;, | &#8216;json&#8217;, | &#8216;pdf&#8217;.<\/p>\n<p><label class=\"example\">EXAMPLE<\/label><\/p>\n<pre class=\"prettyprint lang-js\">$(\"#table\").tableHTMLExport({\r\n   type: 'csv',\r\n});\r\n<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><code>ignoreColumns<\/code> &amp; <code>ignoreRows<\/code><\/td>\n<td>These options are useful if you want to ignore specific columns or rows. Default: &#8221;, Type: Object \/ String.<br \/>\nValid Option Value: Pass the selector (id or class) of your desired column or row.<\/p>\n<p><label class=\"example\">EXAMPLE<\/label><\/p>\n<pre class=\"prettyprint lang-js\">$(\"#table\").tableHTMLExport({\r\n  ignoreColumns: \"#id-of-column\",\r\n  ignoreRows: \"#id-of-row\",\r\n});\r\n<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><code>htmlContent <\/code><\/td>\n<td>Indicates if the content of the table to be exported has HTML code. Default: false, Type: Boolean.<\/p>\n<p><label class=\"example\">EXAMPLE<\/label><\/p>\n<pre class=\"prettyprint lang-js\">$(\"#table\").tableHTMLExport({\r\n   htmlContent: false,\r\n});\r\n<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><code>filename <\/code><\/td>\n<td>It define the name of file that will be downloaded. Default: &#8220;tableHTMLExport.csv&#8221;, Type: String.<\/p>\n<p><label class=\"example\">EXAMPLE<\/label><\/p>\n<pre class=\"prettyprint lang-js\">$(\"#table\").tableHTMLExport({\r\n   filename: \"My-Custom-File-Name.csv\",\r\n});\r\n<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><code>quoteFields <\/code><\/td>\n<td>It is useful when exported to <code>.csv<\/code> and which cites fields. Default: true, Type: Boolean.<\/p>\n<p><label class=\"example\">EXAMPLE<\/label><\/p>\n<pre class=\"prettyprint lang-js\">$(\"#table\").tableHTMLExport({\r\n   quoteFields: true,\r\n});\r\n<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td><code> consoleLog<\/code><\/td>\n<td>Enable \/ disable debugging mode. Default: false, Type: Boolean.<\/p>\n<p><label class=\"example\">EXAMPLE<\/label><\/p>\n<pre class=\"prettyprint lang-js\">$(\"#table\").tableHTMLExport({\r\n   consoleLog: true,\r\n});\r\n<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The TableHTMLExport is a lightweight jQuery plugin that helps you to export HTML table to Excel .csv file. It converts&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3278,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63,97],"tags":[85],"class_list":["post-3277","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3","category-text-input","tag-text"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free jQuery plugin that lets you to create HTML table to Excel export functionality using TableHTMLExport plugin. Export HTML table to CSV, XLSX.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free jQuery plugin that lets you to create HTML table to Excel export functionality using TableHTMLExport plugin. Export HTML table to CSV, XLSX.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-20T16:53:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:53:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"962\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins\",\"datePublished\":\"2024-01-20T16:53:00+00:00\",\"dateModified\":\"2024-01-22T09:53:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\"},\"wordCount\":407,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg\",\"keywords\":[\"Text\"],\"articleSection\":[\"HTML5 &amp; CSS3\",\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\",\"url\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\",\"name\":\"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg\",\"datePublished\":\"2024-01-20T16:53:00+00:00\",\"dateModified\":\"2024-01-22T09:53:55+00:00\",\"description\":\"Here is a free jQuery plugin that lets you to create HTML table to Excel export functionality using TableHTMLExport plugin. Export HTML table to CSV, XLSX.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg\",\"width\":1280,\"height\":962,\"caption\":\"Export HTML Table to Excel using jQuery Plugin\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins &#8212; CodeHim","description":"Here is a free jQuery plugin that lets you to create HTML table to Excel export functionality using TableHTMLExport plugin. Export HTML table to CSV, XLSX.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/","og_locale":"en_US","og_type":"article","og_title":"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins &#8212; CodeHim","og_description":"Here is a free jQuery plugin that lets you to create HTML table to Excel export functionality using TableHTMLExport plugin. Export HTML table to CSV, XLSX.","og_url":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-20T16:53:00+00:00","article_modified_time":"2024-01-22T09:53:55+00:00","og_image":[{"width":1280,"height":962,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg","type":"image\/jpeg"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins","datePublished":"2024-01-20T16:53:00+00:00","dateModified":"2024-01-22T09:53:55+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/"},"wordCount":407,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg","keywords":["Text"],"articleSection":["HTML5 &amp; CSS3","Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/","url":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/","name":"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg","datePublished":"2024-01-20T16:53:00+00:00","dateModified":"2024-01-22T09:53:55+00:00","description":"Here is a free jQuery plugin that lets you to create HTML table to Excel export functionality using TableHTMLExport plugin. Export HTML table to CSV, XLSX.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2019\/06\/export-html-table-to-excel.jpg","width":1280,"height":962,"caption":"Export HTML Table to Excel using jQuery Plugin"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/export-html-table-to-excel-using-jquery-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"Export HTML Table to Excel using jQuery Plugin Easily In 3 Mins"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":17182,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/3277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=3277"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/3277\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/3278"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=3277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=3277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=3277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}