How to submit a form using jquery-ajax and update the list
<p>I have a list of data and each record has a checkbox with it these checkboxes are for admin approval records.
My problem is? that how can i submit the checked recorods via ajax and jquery when clicked on approve button and after that the
list is approved and then the page should be refreshed and the checked items which are approved showed show checked.</p>

<p>My Sample code is here using Codeigniter:</p>

<pre><code>&lt;table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_border"&gt;
    &lt;tr&gt;
                &lt;?php if($this-&gt;auth-&gt;check_user()==1){ ?&gt;
                &lt;th class="tab_head"&gt;&lt;?php echo form_open('main/admin_approve'); ?&gt;&lt;input type="button" name="Approve"  value="Approve" onclick="load_page_wform('&lt;?=base_url()?&gt;main/approve_it','_serchdiv','aform')"/&gt;&lt;/th&gt;
                &lt;?php } ?&gt;
        &lt;th class="tab_head"&gt;First Name&lt;/th&gt;
        &lt;th class="tab_head"&gt;Last Name&lt;/th&gt;
        &lt;th class="tab_head"&gt;Position&lt;/th&gt;
        &lt;th class="tab_head"&gt;Province&lt;/th&gt;
        &lt;th class="tab_head"&gt;Phone#&lt;/th&gt;
        &lt;th class="tab_head"&gt;Committee&lt;/th&gt;
        &lt;th class="tab_head"&gt;Action&lt;/th&gt;

    &lt;/tr&gt;
    &lt;?PHP foreach($participants as $prt){ ?&gt;
    &lt;tr&gt;&lt;?php if($this-&gt;auth-&gt;check_user()==1){ ?&gt;
            &lt;td class="tab_content"&gt;&lt;input type="checkbox" value="&lt;?=$prt-&gt;participant_id?&gt;" name="approve[]" id="approve[]"&gt;&lt;/td&gt;
        &lt;?php } ?&gt;
        &lt;td class="tab_content"&gt;&lt;?=$prt-&gt;first_name?&gt;&lt;/td&gt;
        &lt;td class="tab_content"&gt;&lt;?=$prt-&gt;last_name?&gt;&lt;/td&gt;
        &lt;td class="tab_content"&gt;&lt;?=$prt-&gt;position?&gt;&lt;/td&gt;
        &lt;td class="tab_content"&gt;&lt;?=$prt-&gt;province?&gt;&lt;/td&gt;
        &lt;td class="tab_content"&gt;&lt;?=$prt-&gt;phone1?&gt;&lt;/td&gt;
        &lt;td class="tab_content"&gt;&lt;?=$prt-&gt;commitee?&gt;&lt;/td&gt;
        &lt;td align="center" class="tab_content_last"&gt;
            &lt;a href="&lt;?=site_url("main/participant_view/".$prt-&gt;participant_id)?&gt;" title="View Participant" class="admin-view"&gt;View&lt;/a&gt;
            &lt;?php if($this-&gt;session-&gt;userdata('role')!=3){?&gt;
|           &lt;a href="&lt;?=site_url("main/edit_participant/".$prt-&gt;participant_id)?&gt;" title="Edit Participant" class="admin-edit"&gt;Edit&lt;/a&gt;
|           &lt;a href="&lt;?=site_url("main/delete_participant/".$prt-&gt;participant_id)?&gt;" onclick="return confirm('Are you sure to delete the participant?')" title="Delete Participant" class="admin-delete"&gt;Delete&lt;/a&gt;
            &lt;?php } ?&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;?PHP } ?&gt;
&lt;/table&gt;
</code></pre>
