title: Datatables export buttons not showing
body: <p>I have a table that is made in the $( document ).ready function. I am also using the jQuery DataTables plugin. For some reason, when the page loads, the datatable loads but the export buttons don't.</p>
  <pre><code>function loadAct() {
              var url = 'http://10.26.192.70/apns/index.php/Busqueda_c/listarAsignaciones';
              $.post(url, {
              }, function (data) {
                  var arrayAsignaciones = JSON.parse(data);
                  // INGRESA INFORMACION DENTRO DE CADA TABLA DESPUES DE HABER AGREGADO UNA ASIGNACION
                  for (i = 1; i &lt; arrayAsignaciones.length; i++) {
                      var str2 = arrayAsignaciones[i].Act_TipoActa;
                      var id2 = str2.replace(/ /gi, '-');
                      var idtable2 = 'table-' + id2;
                      var idtbody2 = 'tbody-' + id2;
                      var table = document.getElementById(idtable2);
                      var tbody = document.getElementById(idtbody2);
                      // Aca comienza la creacion del &lt;tbody&gt; 
                      $(table).find(tbody).append(
                              &quot;&lt;tr&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_Grado + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_Nombre + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_Rut + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_Codigo + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_Dotacion + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_FechaInicio + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; + arrayAsignaciones[i].Act_FechaTermino + &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;td&gt;&quot; +
                              &quot;&lt;a href='#' onclick='eliminarAsignacion(&quot; + arrayAsignaciones[i].Act_Rut + &quot;, &quot; + arrayAsignaciones[i].Act_Id + &quot;);return false;'&gt;&quot; +
                              &quot;&lt;span class='glyphicon glyphicon-remove' style='margin-left:25px; font-size:15px; color:red;'&gt;&quot; +
                              &quot;&lt;/span&gt;&quot; +
                              &quot;&lt;/a&gt;&quot; +
                              &quot;&lt;/td&gt;&quot; +
                              &quot;&lt;/tr&gt;&quot;
                              );
  
                      // Aca termina la creacion del &lt;tbody&gt; 
                  }
  
                  $('.tableBody').DataTable({
                      dom: 'Blfltip',
                      buttons: [
                          'copyHtml5',
                          'excel',
                          'csvHtml5',
                          'pdfHtml5'
                      ],
                          &quot;sDom&quot;: 'rt',
                          paging: false,
                          searching: false,
                          ordering: false
                  });
              });
          }
  </code></pre>
  <p>But it is not showing any export button and I can't resolve it.</p>
  <p>I also included the following Javascript and CSS from the dateTable download builder:</p>
  <pre><code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://cdn.datatables.net/v/bs-3.3.6/jq-2.2.3/jszip-2.5.0/pdfmake-0.1.18/dt-1.10.12/af-2.1.2/b-1.2.2/b-colvis-1.2.2/b-flash-1.2.2/b-html5-1.2.2/b-print-1.2.2/cr-1.3.2/fc-3.2.2/fh-3.1.2/kt-2.1.3/r-2.1.0/rr-1.1.2/sc-1.4.2/se-1.2.0/datatables.min.css&quot;/&gt; 
      &lt;script type=&quot;text/javascript&quot; src=&quot;https://cdn.datatables.net/v/bs-3.3.6/jq-2.2.3/jszip-2.5.0/pdfmake-0.1.18/dt-1.10.12/af-2.1.2/b-1.2.2/b-colvis-1.2.2/b-flash-1.2.2/b-html5-1.2.2/b-print-1.2.2/cr-1.3.2/fc-3.2.2/fh-3.1.2/kt-2.1.3/r-2.1.0/rr-1.1.2/sc-1.4.2/se-1.2.0/datatables.min.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>Here is the HTML where I use the dataTabe:</p>
  <pre><code>&lt;div class=&quot;panel panel-success&quot; id=&quot;&quot; style=&quot;width:1400px; margin-left:auto; margin-right:auto &quot;&gt;
      &lt;div class=&quot;panel-heading&quot;&gt;
          &lt;table&gt;
              &lt;tbody&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;h3 class=&quot;panel-title&quot;&gt;PILOTOS (17%)&lt;/h3&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
              
      &lt;/div&gt;
      &lt;div class=&quot;panel-body&quot; id=&quot;PILOTOS-(17%)&quot;&gt;
          &lt;div id=&quot;table-PILOTOS-(17%)_wrapper&quot; class=&quot;dataTables_wrapper no-footer&quot;&gt;
              &lt;table class=&quot;display tableBody dataTable no-footer&quot; id=&quot;table-PILOTOS-(17%)&quot; role=&quot;grid&quot;&gt;
                  &lt;thead&gt;
                      &lt;tr role=&quot;row&quot;&gt;&lt;th class=&quot;sorting_disabled&quot; rowspan=&quot;1&quot; colspan=&quot;1&quot; style=&quot;width: 0px;&quot;&gt;GRADO&lt;/th&gt;
                          &lt;th class=&quot;sorting_disabled&quot; rowspan=&quot;1&quot; colspan=&quot;1&quot; style=&quot;width: 0px;&quot;&gt;NOMBRE&lt;/th&gt;
                          &lt;th class=&quot;sorting_disabled&quot; rowspan=&quot;1&quot; colspan=&quot;1&quot; style=&quot;width: 0px;&quot;&gt;RUN&lt;/th&gt;
  </code></pre>
  CODIGO
                              DOTACION
                              FECHA INICIO
                              FECHA TERMINO
                              ELIMINAR
                      
                      
                          C.P.R.  GDO. 12
                              asdf asdf asdf asdf
                              asdfasdf
                              asdfasdf
                              SEC. INFORMATICA (P.7).
                              03/08/2016
                              04/08/2016