DataTable export button outside table
<p>I have multiple tables on my web page and each one is a DataTable, it is working fine. </p>

<p>I want to enable the export to excel functionality on each of the datatable but the button should be outside the table DOM (and each table should have its own button to export).</p>

<p>I can genrate the HTML5 button inside the table DOM using:</p>

<pre><code>$('#example').DataTable( {
        dom: 'Bfrtip',
        buttons: [
            'copyHtml5',
            'excelHtml5',
            'csvHtml5',
            'pdfHtml5'
        ]
    } );
</code></pre>

<p>But i want someway by which i can attach a button outside the table DOM to act as a export to excel for specific table.</p>