Export html table into CSV file , always return empty file
I am working on an asp.net mvc5 web application. and i need to implement a functionality to export an Html table into a .csv file . so i added the following link :- <a href="#" class="export">Export Table data into Excel</a > and i have the following script:- $(document).ready(function () { function exportTableToCSV($table, filename) { var $rows = $table.find('tr:has(td)'), // Temporary delimiter characters unlikely to be typed by keyboard // This is to avoid accidentally splitting the actual contents tmpColDelim = String.fromCharCode(11), // vertical tab character tmpRowDelim = String