title: Show/hide datatable when display is set to none
body: <p>I have a datatable , want to show/hide based on the flag, </p>
  
  <pre><code>&lt;div class="enginestat" style="display: none;"&gt;
  
  if (resp == 'Y') {
      $(".enginestat").show();
  } else {
      $(".enginestat").hide();
  }
  </code></pre>
  
  <p>The datatable doesnt show up properly, how to show/hide when I put display:none?</p>