161
rated 0 times
[
162]
[
1]
/ answers: 1 / hits: 38314
/ 7 Years ago, wed, june 7, 2017, 12:00:00
This is the fiddle https://jsfiddle.net/ym4egje0/
I have two things to ask
this is creating a xls , how to create a xlsx file and it does not work in IE , only works in google chrome , how to make it work in IE ?
I want to put
ColumnHead
column header text and message1 and message2 should be consecutive rows .
Have to take as the index of (.) to cut into rows .
HTML
<input id=btnExport type=button value = Generate File />
JS/Jquery
$(#btnExport).click(function (e) {
var ColumnHead = Column Header Text;
var Messages = n message1.n message2.;
window.open('data:application/vnd.ms-excel,' + Messages);
e.preventDefault();
});
More From » jquery