title: Print button not displayed for Data Tables in jquery
body: <p>I have the following js fiddle <a href="https://jsfiddle.net/jek1uobr/" rel="nofollow noreferrer">https://jsfiddle.net/jek1uobr/</a> .Though I have added the print button it is not displayed in the datatable.</p>
  
  <pre><code> $(function () {$('#example').DataTable( {
          orderCellsTop: true,
      dom: 'Bfrtip',
      buttons: [
          'print'
      ],
          "columnDefs": [                   
                        {   "width": "25%", "targets": [ 1 ] }
                     ],
      "dom" : '&lt;"top"fl&lt;"clear"&gt;&gt;rt&lt;"bottom"ip&lt;"clear"&gt;&gt;',
  
                   initComplete: function () {
                       this.api().columns([1,2,3,4,5]).every(function () {
                       var column = this;
                       var select = $('&lt;select style="width:130px; font-size: 13px; padding: 2px 1px 2px 1px; background: #fff; border: 1px solid #ccc; border-radius: 6px;position: relative; "&gt;&lt;option value=""&gt;(All)&lt;/option&gt;&lt;/select&gt;')
                      .appendTo($(column.header()))
                      .appendTo( $("#example thead tr:eq(1) th").eq(column.index()).empty())
                               .on('change', function () {
                                   var val = $.fn.dataTable.util.escapeRegex(
                                       $(this).val()
                                   );
  
                                   column
                                       .search(val ? '^' + val + '$' : '', true, false)
                                       .draw();
                               });
                           column.data().unique().sort().each(function (d, j) {
                               select.append('&lt;option value="' + d + '"&gt;' + d + '&lt;/option&gt;')
                  } );
              } );
          }
      } );});
  </code></pre>