I have applied this code, it export .xls but I need the change export format .xlsx
let file = new Blob([$('#FinalForm').html()], {type:"application/vnd.ms-excel"}); let url = URL.createObjectURL(file); let a = $("<a/>", {href: url,download: "budget.xls"}).appendTo("body").get(0).click(); console.log('a', a); e.preventDefault();
This code did not work for export .xlsx. How can I export HTML data to .xlsx.
Question and answer is powered by AnsPress.io