title: How to reload the datatable(jquery) data?
body: <p>How to reload the selected tab? Actually I have problem with reloading part. When I add my data I'll successfully saved in datatable but in id field in database it shows proper id, but when I add the detail its not shows id in datatable.</p>
  
  <p>(before refresh the summary tab) here is example it shows something like this in datatable id patient husband age ...........so on... '' xyz abc 23....... so on...</p>
  
  <p>(after refreshing manually) but when I refresh my page it show successfully..like this in datatable: id patient husband age ...........so on... 13 xyz abc 23 ....... so on...</p>
  
  <p>But exactly I want when I add my detail it should automatically refresh the selected tab.</p>
  
  <p>My code is below:</p>
  
  <pre><code>&lt;button type="button"  a href="javascript:void(0);" onclick="fnClickAddRow();"&gt;Add Summary&lt;/button&gt;
  
  function fnClickAddRow(event) {
  
  $('#table_scroll').dataTable().fnAddData( [
  
  $('#patientt').val(),$('#husband').val(),$('#age').val(),$('#opu_no').val(),$('#date').val(),$('#proc').val(),$('#no_of_eggs').val(),$('#fert').val(),$('#et_date').val(),$('#et_day').val(),$('#et').val(),$('#fz').val(),$('#bioch_preg').val(),$('#clin_preg').val(),$('#fh').val(),$('#comment').val()
  
  ]);
  
  
  var datastring = $(Form_summary).serialize();
  
  $.ajax({
      type: "POST",
      url: "summaryajax.php",
      data: datastring, 
      success: function(response){
  
   alert(response);
  
      }
      });
  </code></pre>
  
  <p>I also tired this approach but no success.</p>
  
  <p>I want my datatable to refresh the data</p>
  
  <pre><code>function fnClickAddRow(event) {
  
  var datastring = $(Form_summary).serialize();
  
  $.ajax({
      type: "POST",
      url: "summaryajax.php",
      data: datastring, 
      success: function(response){
         $('#table_scroll').dataTable().fnAddData( 
            [resposne, $('#patientt').val(), $('#husband').val(),$('#age').val(),
              $('#opu_no').val(), $('#date').val(),$('#proc').val(), $('#no_of_eggs').val(), 
              $('#fert').val(),$('#et_date').val(), $('#et_day').val(), $('#et').val(), 
              $('#fz').val(), $('#bioch_preg').val(), $('#clin_preg').val(), $('#fh').val(), 
              $('#comment').val() ]);
      }
  });
  </code></pre>