how to reload the selected tab jquery
<p>how to reload the selected tab actually i having problem in 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 will automatically refresh the selected tab.</p>

<p>here is my code as 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>
