$(document).ready( function() { $('#example').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'excelHtml5', autoFilter: true, sheetName: 'Exported data' } ] } ); } );