1. Code of html
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<title>jQuery TableExport Basic Demo</title>
</head>
<body>
<div class="container">
<h1>jQuery TableExport Basic Demo</h1>
<table id="tbl1" class="table table-striped table-bordered" data-name="cool-table">
<caption class="btn-toolbar bottom">
<button data-fileblob="{"data":[["Rank","Country","Population","% of world population","Date"],["1","China","1,370,570,000","18.9%","June 24, 2015"],["2","India","1,273,140,000","17.6%","June 24, 2015"],["3","United States","321,268,000","4.43%","June 24, 2015"],["4","Indonesia","255,461,700","3.52%","July 1, 2015"],["5","Brazil","204,503,000","2.82%","June 24, 2015"],["6","Pakistan","190,156,000","2.62%","June 24, 2015"]],"fileName":"myDownload","mimeType":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","fileExtension":".xlsx"}" class="btn btn-default xlsx">
Export to xlsx
</button>
@*<button data-fileblob="{"data":[["Rank","Country","Population","% of world population","Date"],["1","China","1,370,570,000","18.9%","June 24, 2015"],["2","India","1,273,140,000","17.6%","June 24, 2015"],["3","United States","321,268,000","4.43%","June 24, 2015"],["4","Indonesia","255,461,700","3.52%","July 1, 2015"],["5","Brazil","204,503,000","2.82%","June 24, 2015"],["6","Pakistan","190,156,000","2.62%","June 24, 2015"]],"fileName":"myDownload","mimeType":"application/vnd.ms-excel","fileExtension":".xls"}" class="btn btn-default xls">
Export to xls
</button>
<button data-fileblob="{"data":"\"Rank\",\"Country\",\"Population\",\"% of world population\",\"Date\"\r\n\"1\",\"China\",\"1,370,570,000\",\"18.9%\",\"June 24, 2015\"\r\n\"2\",\"India\",\"1,273,140,000\",\"17.6%\",\"June 24, 2015\"\r\n\"3\",\"United States\",\"321,268,000\",\"4.43%\",\"June 24, 2015\"\r\n\"4\",\"Indonesia\",\"255,461,700\",\"3.52%\",\"July 1, 2015\"\r\n\"5\",\"Brazil\",\"204,503,000\",\"2.82%\",\"June 24, 2015\"\r\n\"6\",\"Pakistan\",\"190,156,000\",\"2.62%\",\"June 24, 2015\"","fileName":"myDownload","mimeType":"text/csv","fileExtension":".csv"}" class="btn btn-default csv">
Export to csv
</button>
<button data-fileblob="{"data":"Rank Country Population % of world population Date\r\n1 China 1,370,570,000 18.9% June 24, 2015\r\n2 India 1,273,140,000 17.6% June 24, 2015\r\n3 United States 321,268,000 4.43% June 24, 2015\r\n4 Indonesia 255,461,700 3.52% July 1, 2015\r\n5 Brazil 204,503,000 2.82% June 24, 2015\r\n6 Pakistan 190,156,000 2.62% June 24, 2015","fileName":"myDownload","mimeType":"text/plain","fileExtension":".txt"}" class="btn btn-default txt">
Export to txt
</button>*@
</caption>
<thead>
<tr>
<th>Rank</th>
<th>Country</th>
<th>Population</th>
<th>% of world population</th>
<th>Date</th>
<th>Rank</th>
<th>Country</th>
<th>Population</th>
<th>% of world population</th>
<th>Date</th>
<th>Rank</th>
<th>Country</th>
<th>Population</th>
<th>% of world population</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
</tbody>
</table>
<script src="/csjs/jquery-1.12.4.min.js"></script>
<script src="/csjs/FileSaver.min.js"></script>
<script src="/csjs/Blob.min.js"></script>
<script src="/csjs/xls.core.min.js"></script>
<script src="/csjs/tableexport.js"></script>
<script>
//$("#tbl1").tableExport({ formats: ["xlsx", "xls", "csv", "txt"], });
$("#tbl1").tableExport({ formats: ["xlsx"] });
</script>
</div>
</body>
</html>
2. Js File Link
https://drive.google.com/file/d/1cSpc7ZBUgsBXXURL3AwZD8W1C__XvWUR/view?usp=sharing
JS Files Link to download
3. Export To Excel and CSV but Import CSV only into DataTable
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<title>jQuery TableExport Basic Demo</title>
</head>
<body>
<div class="container">
<h1>jQuery TableExport Basic Demo</h1>
<table id="tbl1" class="table table-striped table-bordered" data-name="cool-table">
<caption class="btn-toolbar bottom">
<button data-fileblob="{"data":[["Rank","Country","Population","% of world population","Date"],["1","China","1,370,570,000","18.9%","June 24, 2015"],["2","India","1,273,140,000","17.6%","June 24, 2015"],["3","United States","321,268,000","4.43%","June 24, 2015"],["4","Indonesia","255,461,700","3.52%","July 1, 2015"],["5","Brazil","204,503,000","2.82%","June 24, 2015"],["6","Pakistan","190,156,000","2.62%","June 24, 2015"]],"fileName":"myDownload","mimeType":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","fileExtension":".xlsx"}" class="btn btn-default xlsx">
Export to xlsx
</button>
@*<button data-fileblob="{"data":[["Rank","Country","Population","% of world population","Date"],["1","China","1,370,570,000","18.9%","June 24, 2015"],["2","India","1,273,140,000","17.6%","June 24, 2015"],["3","United States","321,268,000","4.43%","June 24, 2015"],["4","Indonesia","255,461,700","3.52%","July 1, 2015"],["5","Brazil","204,503,000","2.82%","June 24, 2015"],["6","Pakistan","190,156,000","2.62%","June 24, 2015"]],"fileName":"myDownload","mimeType":"application/vnd.ms-excel","fileExtension":".xls"}" class="btn btn-default xls">
Export to xls
</button>
<button data-fileblob="{"data":"\"Rank\",\"Country\",\"Population\",\"% of world population\",\"Date\"\r\n\"1\",\"China\",\"1,370,570,000\",\"18.9%\",\"June 24, 2015\"\r\n\"2\",\"India\",\"1,273,140,000\",\"17.6%\",\"June 24, 2015\"\r\n\"3\",\"United States\",\"321,268,000\",\"4.43%\",\"June 24, 2015\"\r\n\"4\",\"Indonesia\",\"255,461,700\",\"3.52%\",\"July 1, 2015\"\r\n\"5\",\"Brazil\",\"204,503,000\",\"2.82%\",\"June 24, 2015\"\r\n\"6\",\"Pakistan\",\"190,156,000\",\"2.62%\",\"June 24, 2015\"","fileName":"myDownload","mimeType":"text/csv","fileExtension":".csv"}" class="btn btn-default csv">
Export to csv
</button>
<button data-fileblob="{"data":"Rank Country Population % of world population Date\r\n1 China 1,370,570,000 18.9% June 24, 2015\r\n2 India 1,273,140,000 17.6% June 24, 2015\r\n3 United States 321,268,000 4.43% June 24, 2015\r\n4 Indonesia 255,461,700 3.52% July 1, 2015\r\n5 Brazil 204,503,000 2.82% June 24, 2015\r\n6 Pakistan 190,156,000 2.62% June 24, 2015","fileName":"myDownload","mimeType":"text/plain","fileExtension":".txt"}" class="btn btn-default txt">
Export to txt
</button>*@
</caption>
<thead>
<tr>
<th>Rank</th>
<th>Country</th>
<th>Population</th>
<th>% of world population</th>
<th>Date</th>
<th>Rank</th>
<th>Country</th>
<th>Population</th>
<th>% of world population</th>
<th>Date</th>
<th>Rank</th>
<th>Country</th>
<th>Population</th>
<th>% of world population</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
<tr>
<td>1</td>
<td>China</td>
<td>1,370,570,000</td>
<td>18.9%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
<td>2</td>
<td>India</td>
<td>1,273,140,000</td>
<td>17.6%</td>
<td>June 24, 2015</td>
</tr>
</tbody>
</table>
<script src="/csjs/jquery-1.12.4.min.js"></script>
<script src="/csjs/FileSaver.min.js"></script>
<script src="/csjs/Blob.min.js"></script>
<script src="/csjs/xls.core.min.js"></script>
<script src="/csjs/tableexport.js"></script>
<script>
//$("#tbl1").tableExport({ formats: ["xlsx", "xls", "csv", "txt"], });
$("#tbl1").tableExport({ formats: ["xlsx"] });
</script>
</div>
</body>
</html>
2. Js File Link
https://drive.google.com/file/d/1cSpc7ZBUgsBXXURL3AwZD8W1C__XvWUR/view?usp=sharing
JS Files Link to download
3. Export To Excel and CSV but Import CSV only into DataTable