I am trying to export an HTML Table to Ms Excel Using This Demo but it is exporting a file called "download" (without excel file extensions)and when I double click on that it opens like a text file. Can you please let me know why this is happening?
$("#btnExport").click(function(e) {
window.open('data:application/vnd.ms-excel,' + $('#dvData').html());
e.preventDefault();
});
Thanks