skip to Main Content

Insert new first thead row of a table using jQuery

I have this table: <table id="test"> <thead> <tr><td>Main Head 1</td><td>Main Head 2</td></tr> <tr><td>Sub Head 1</td><td>Sub Head 2</td></tr> </thead> <tbody> <tr><td>Data 1</td><td>Data 2</td></tr> <tr><td>Data 1</td><td>Data 2</td></tr> <tr><td>Data 1</td><td>Data 2</td></tr> </tbody> </table> I like to insert a new first row in the…

VIEW QUESTION

Jquery – Export several tables to different excel worksheets of the same file

I have a table that I managed to export to excel, using the following solution by @Nidhin Chalil, that I simplified a bit : function tableToExcel(table, sheetName, fileName) { var uri = 'data:application/vnd.ms-excel;base64,', templateData = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte…

VIEW QUESTION
Back To Top
Search