I am attempting to include a button that would allow users to download the table as an .xls file. Upon researching, I stumbled upon this page, however, after implementing the provided JS code, nothing seems to occur: https://datatables.net/extensions/buttons/examples/initialisation/export.html
Below is the code I have:
$(document).ready(function() {
$('#dataTable').DataTable({
dom:
"<'row' <'col-md-12'i>>" +
"<'row' <'col-md-6'B>>" +
"<'row' <'col-sm-12'tr>>" +
"<'row' <'col-md-12'p>>",
buttons: [
'excel'
]
});
});