Select.selector() not working.

Select.selector() not working.

Pawan2601Pawan2601 Posts: 1Questions: 1Answers: 0

I am trying to copy the selected rows with copy button but i only want to copy the first 5 cells in a row. I am trying-out with following code to select just the first cell of each row; but it's not working. Please suggest on how it will work; and if possible the code to select first 5 cells in eah row only.

$(document).ready(function() {
$('#group_table').DataTable( {
dom: 'Bfrtip',
buttons: [
{
extend: 'copy',
text: 'Copy selected',
exportOptions: {
modifier: {
selected: true
}
}
}
],
select: {
style: 'os',
selector: 'td:first-child'
}
} );
} );

Thanks in advance.

This discussion has been closed.