title: DataTables plugin using jQuery to add a column in the table of a button
body: <p>I am using DataTablesPlugin but I want to add a column with buttons and another that has a link.</p>
  
  <p>I try to make the button as follows:</p>
  
  <pre><code>var eliminar = document.createElement ('button')
  
  eliminar.type = 'button';
  
  var imagen = document.createElement ('img');
  
  imagen.src = 'prueba.png';
  
  eliminar.appendChild (imagen);
  
    $ ('# example'). dataTable (). fnAddData ([
  number,
  name,
  address,
  eliminar
  ]);
  </code></pre>
  
  <p>BUT MAKE THE FOLLOWING ERROR:</p>
  
  <p>[object HTMLButtonElement]</p>
  
  <p>The variables number, name, and address if shown in the table that are strings and were taken from a json.</p>
  
  <p>I have read <a href="http://www.datatables.net/release-datatables/examples/plug-ins/html_sort.html" rel="nofollow">http://www.datatables.net/release-datatables/examples/plug-ins/html_sort.html</a> but do not quite understand.</p>
  
  <p>Could anyone help me solve this?
  Thanks and sorry I am new to java script and jquery,</p>