title: dataTable plugin, reload table, fnDestroy() destroys the wrapper AND its content : "Node was not found"
body: <p>Well, after some AJAX I use dataTable.fnDestroy() and reinitialize the table to refresh the data (for sorting, etc...)</p>
  
  <p>It worked some days ago, with a simple table and now I can't do it again. I have this error: </p>
  
  <p><strong>Node was not found</strong> with the following line error in datable.js : "<kbd><em>orig.insertBefore( table, settings.nTableReinsertBefore );</kbd></em>->line 8853"</p>
  
  <p>It's strange because I can initialise every tables : </p>
  
  <pre><code>$('table[id*="classement"]').each(function(){
      if (condition){
          $(this).dataTable({
              columnDefs: [
                 {type: 'non-empty-string', targets: [1,2]} 
              ],
              "bAutoWidth": false,
              aoColumns : [
                    { "sWidth": "7%"},
                    { "sWidth": "65%"},
                    { "sWidth": "20%"},
                    { "sWidth": "8%"}
                  ]
           });
      }
      else if{
           ...
           ...
           etc...
   });
  </code></pre>
  
  <p>But if I try just after to delete them, I have the previous error in the console (recent browser version):</p>
  
  <pre><code>$('table[id*="classement"]').each(function(){
      $(this).dataTable().fnDestroy();
  });    
  </code></pre>
  
  <p>So I can't reinitialize my tables because destroy is having an issue.</p>
  
  <p>Same with <code>"bDestroy":true,</code></p>
  
  <p><strong>Edit :</strong> In fact it works, it destroys the 'div wrapper' and its content, is there a way to keep the table after destroy which is normally the default behaviour ?</p>
  
  <p>See these screen :</p>
  
  <p><img src="https://i.stack.imgur.com/nXd8x.png" alt="enter image description here"></p>
  
  <p>and after </p>
  
  <pre><code>$('#classement_ownranking_music').dataTable().fnDestroy();
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/4Kmkj.png" alt="enter image description here"></p>
  
  <p>So it destroys the wrapper but also the table. Any idea?</p>