title: PHP include != JS load
body: <p>I use DataBase from <a href="https://www.datatables.net/" rel="nofollow noreferrer">https://www.datatables.net/</a></p>
  
  <p>My problem is, I want to include or load the table content every x seconds.
  My scripts working without problems but datatables can't register the input if I load via js.
  A PHP include works without problems and datatables recognize the table content like a charme.</p>
  
  <p>This is my JS "script":</p>
  
  <pre><code>$(document).ready(function() {
      database();
      setInterval(database, 10000);
  });
  
  function database() {
      $("#database").load("getdb.php");
  }
  </code></pre>
  
  <p>And this a part of my html/php code:</p>
  
  <pre><code>  &lt;/tfoot&gt;
    &lt;tbody id="database"&gt;&lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Working part is:</p>
  
  <pre><code>  &lt;/tfoot&gt;
    &lt;tbody&gt;&lt;?include("getdb.php");?&gt;&lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>