How do I combine these two functions in Datatables and Table Tools to merge?

How do I combine these two functions in Datatables and Table Tools to merge?

timmaynettimmaynet Posts: 1Questions: 1Answers: 0

$(document).ready( function() {
$('#example').dataTable( {
"lengthMenu": [[10, 25, 50, 100, 250, 500, 1000, -1], [10, 25, 50, 100, 250, 500, 1000, "All"]]
} );
} );

$(document).ready(function() {
$('#example').DataTable( {
dom: 'T<"clear">lfrtip',
tableTools: {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sPdfMessage": "Input message here"
},
"print"
]
}
} );
} );

This discussion has been closed.