I have these two codes and one cancels the other. I need help getting the two together. Thanks
<script type="text/javascript" class="init">
$(document).ready(function() {
var table = $('#escritorios').DataTable({
lengthChange: false,
buttons: ['colvis', 'print', 'copy', 'excel', 'pdf']
});
table.buttons().container().appendTo('#example_wrapper .col-md-6:eq(0)');
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#escritorios').DataTable({
responsive: {
details: {
type: 'column',
target: 'tr'
}
},
columnDefs: [{
className: 'control',
orderable: false,
targets: 0
}],
order: [1, 'asc']
});
});
</script>