How would you copy multiple rows of data like this <tr><td>cell 1</td><td>cell 2</td></tr> <tr><td>cell 3</td></td>cell 4</td></tr>
into user's clipboard, ready to be pasted in Excel (one <td>
pair will go to one cell in Excel)
I have something like this in mind:
$('#copy').click(function(){
var data = $('datatable tr:visible').text();
alert("you have copied these data: " + data + "now you can paste them in Excel");
});
Nothing in data variable in the alert box. Pretty much stuck here..