dataTable Buttons will not show up -


function init_datatable()  { $(document).ready(function(){     $('#table').datatable( {         dom: 'lfrtipb',          buttons: [             'copy', 'excel', 'pdf'         ]     } ); }); } 

the datatable initiates , works properly, buttons not load.

any idea what's going wrong here?

using these cdn links (network loads them well):

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.15/css/jquery.datatables.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.15/js/jquery.datatables.js"></script>  <!--datatable cdn buttons-->  <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.datatables.min.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/buttons/1.3.1/js/datatables.buttons.min.js"></script> 

you need add js files buttons. can check fiddle [button example][1]. there find included included files buttons in external sources.

  [1]: https://jsfiddle.net/jignesh221290/zm0oyea6/ 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -