title: Datatable function is not working when load table from another page via ajax post method
body: <p>My datatable jquery is not working. When i am load table from another page via ajax post method. Please help me.</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;script type="text/javascript"&gt;
  // Call ajax
  function getTable()
  {
      $.post("datatable.php",
              {
              },
              function(data){
                  /*alert(data);*/
                  $("#showData").html(data);
              });
  
  }
  // Datatable function
  //$(document).ready(function(){
    $('#example').DataTable();
  //});
  &lt;/script&gt;
  </code></pre>