I'm trying to copy the contents of the table ignoring t he header/title row to clipboard exactly the same as if you was to select it manually and copy.
I found a thread to select Select a complete table with Javascript (to be copied to clipboard) but that selects the entire table, I want to ignore the header/title row and I don't really want to "select" just copy.
<table>
<tbody>
<tr>
<th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th><th>title</th>
</tr>
<tr class="user">
<td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td>
</tr>
<tr class="user">
<td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td><td>test</td>
</tr>
</tbody>
</table>
Cliboard contents should be:
test test test test test test test test test test test test
test test test test test test test test test test test test
Attempt to actually find the values:
$('.CopyEntries').click(function () {
$('tbody tr').each(function(){
$(this).find('td').each(function(){
console.log($(this).val());
})
})
});