title: How to reload DataTable from html code
body: <p>here's my question, I've got a datatable in html, I have a function replacing the html code of the datatable by an updated one (the same, but with the update database values).</p>
  
  <p>But the probleme is, things like "Display 1 entry from 1 to 1" doesn't update.</p>
  
  <p>I'd like to refresh the whole tab with the new values, and with the data-table functions from.</p>
  
  <p>Any ideas ?</p>
  
  <p>I'm not really clear about how my code is; but basically : it's a html table ruled by php's foreach/if and echoes of values got by requesting a database. So, even while reloading the same html code, there won't be the same values if you add something through the database.</p>
  
  <p>I'll add the fact that there is switchbuttons inside the data-base, and they get also destroy by the html reload.
  When I say html reload, I mean this : <code>$('#myTable').html(new_html);</code></p>
  
  <p>Thank you</p>