How i can set the form action for tabs and sub tabs using jquery?
<p>Below code have Tabs and sub tabs. In sub tabs Absent "i select the date and class click go button" Its reload and display the data in Absent sub tab itself and same format for early tab also. How i can set the action for tabs and sub tabs this?<br></p>

<p>Tabs<br></p>

<pre><code>&lt;div id="tabs"&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;a href="#tabEmailReport2"&gt;Absent List&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
</code></pre>

<p>Sub tabs </p>

<pre><code>&lt;div id="tabEmailReport2"&gt;
    &lt;form id="absentMain" name="absentMain" action="&lt;?php print $_SERVER['REQUEST_URI'];?&gt;#tabEmailReport2" method="post"&gt;
&lt;div class="demo"&gt;
&lt;div id="accordion"&gt;
&lt;h3&gt;&lt;a href="#abs"&gt;Absent&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;
            &lt;form id="absent" name="absent" action="&lt;?php print $_SERVER['REQUEST_URI'];?&gt;#Abs" method="post"&gt;
    &lt;label&gt;
    Choose report date : &lt;input type="text" id="rptDate" name="rptDate" value="&lt;?php echo $rptDate;?&gt;"/&gt;&lt;/label&gt;
    &lt;span id="absentInfo"&gt; &lt;/span&gt;
    Select Class: &lt;select name="att_classlist"&gt;
            &lt;?php  
                foreach($class as $name){ 
                $selected = '';
                if(isset($_POST['att_classlist']) &amp;&amp; $_POST['att_classlist'] == $name){
                        $selected = 'selected = "selected"';
                }
                print "&lt;option value=\"$name\" $selected&gt;$name&lt;/option&gt;"; }
            ?&gt;
            &lt;/select&gt;
    &lt;input name="btnAtt" type="submit" value="Go" /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="/modules/attendance/xls_absentlist.php" target="_blank"&gt; Current Report &lt;/a&gt;
&lt;/form&gt;
 &lt;?php 
    if(isset($_POST['btnAtt'])){
$Reports = new Report($rptDate);
print $Reports-&gt;att_AbsentList($_POST['rptDate'], $_POST['att_classlist']);
}
    ?&gt;
&lt;/div&gt;
&lt;h3&gt;&lt;a href="#early"&gt;Early&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;
    &lt;form id="early" name="early" action="&lt;?php print $_SERVER['REQUEST_URI'];?&gt;#tabEmailReport2&amp;#early" method="post"&gt;
    &lt;label&gt;
    Choose report date : &lt;input type="text" id="earlyDate" name="earlyDate" value="&lt;?php echo $earlyDate;?&gt;"/&gt;&lt;/label&gt;
    &lt;span id="absentInfo"&gt; &lt;/span&gt;
    Select Class: &lt;select name="early_classlist"&gt;
            &lt;?php  
                foreach($class as $name){ 
                $selected = '';
                if(isset($_POST['early_classlist']) &amp;&amp; $_POST['early_classlist'] == $name){
                        $selected = 'selected = "selected"';
                }
                print "&lt;option value=\"$name\" $selected&gt;$name&lt;/option&gt;"; }
            ?&gt;
            &lt;/select&gt;
    &lt;input name="btnEarlyAtt" type="submit" value="Go" /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="/modules/attendance/xls_absentlist.php" target="_blank"&gt; Current Report &lt;/a&gt;
&lt;/form&gt;
 &lt;?php 
    if(isset($_POST['btnAtt'])){
$Reports = new Report($rptDate);
print $Reports-&gt;att_EarlyRelease($_POST['earlyDate'], $_POST['att_classlist']);
}
    ?&gt;
&lt;/div&gt;
&lt;h3&gt;&lt;a href="#"&gt;Section 3&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;
        add some thing here
    &lt;/div&gt;
&lt;h3&gt;&lt;a href="#"&gt;Section 4&lt;/a&gt;&lt;/h3&gt;
&lt;div&gt;
    add something here
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!-- End demo --&gt;
&lt;/form&gt;
</code></pre>
