title: how to show and hide columns of using datatable jquery
body: <p>I need to show and hide the columns of the datatable after doing a javascript test, but it doesn't work good.</p>
  
  <p>This is my test javascript:</p>
  
  <pre><code>if ( $('#commune_to_display').val()==""){
      $('#utable td:nth-child(2)').hide();
      $('#commune_to ').hide();
  }
  </code></pre>
  
  <p>This test works just in the first page of the datatable, after pagination the column is still visible.</p>
  
  <p>How can I fix it? thanks for help</p>