I am using filesaver.js
to export my div (with multiple tables) to excel. I am able to export it as XLS using the code below.
var blob = new Blob([document.getElementById('exportable').innerHTML], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
});
saveAs(blob, "Test Report using FileSaver.xls");
However, I want to export my div to XLSX. Can anyone help? I have tried changing the MIME type to XLSX, but didn't help.