", "sButtonText": "Copy to element", "sDiv": "", "fnClick": function( nButton, oConfig ) { document.getElementById(oConfig.sDiv).innerHTML = this.fnGetTableData(oConfig); } } ); $(document).ready(function() { $('#example').DataTable( { dom: 'T<"clear">lfrtip', tableTools: { "aButtons": [ { "sExtends": "copy_to_div", "sButtonText": "Copy to div", "sDiv": "copy" } ] } } ); } ); ]]> Plug-in button types
Copy output will go here