Hi,
I want to be able to copy certain rows (e.g. index rows 0 and 2) from a table to the clipboard, in comma delimited format.
html...
<table id="mytbl">
<tr><td>val1</td><td>val2</td><td>val3</td></tr>
<tr><td>vald</td><td>val99</td><td>val2</td></tr>
<tr><td>valx</td><td>val4</td><td>val2</td></tr>
</table>
clipboard..
val1,val2,val3
valx,val4,val2
How should I do this in JavaScript ?
Cheers
I want to be able to copy certain rows (e.g. index rows 0 and 2) from a table to the clipboard, in comma delimited format.
html...
<table id="mytbl">
<tr><td>val1</td><td>val2</td><td>val3</td></tr>
<tr><td>vald</td><td>val99</td><td>val2</td></tr>
<tr><td>valx</td><td>val4</td><td>val2</td></tr>
</table>
clipboard..
val1,val2,val3
valx,val4,val2
How should I do this in JavaScript ?
Cheers