How do I export html table data as .csv file?
I have a table of data in an html table on a website and need to know how to export that data as .csv file. How would this be done? AlphaMale For exporting html to csv try following this example. More details and examples are available at the author's website . Create a html2csv.js file and put the following code in it. jQuery.fn.table2CSV = function(options) { var options = jQuery.extend({ separator: ',', header: [], delivery: 'popup' // popup, value }, options); var csvData = []; var headerArr = []; var el = this; //header var numCols = options.header.length; var tmpRow = []; // construct