jquery-table2excel
jquery-table2excel copied to clipboard
thead is lost..
Hi I'm starting to use your library, but when exporting, the thead did not appear.
I would be delighted if you could guide me a bit ..
Cheers..
My code is this.
$("#exportExcel").click(function(){
$('<table>')
.append(
//$("#example thead tr").clone().prependTo($("#example thead"))
$("#example").DataTable().$('tr').clone()
)
.table2excel({
name: "Worksheet Name",
filename: "SomeFile" //do not include extension
});
});
The commented line, brings me only thead, and the other, if it brings me all content.
Sorry for my bad english, im mexican. Thank you.