Putting sum in Parent td using JQuery
<p>I have following <code>table</code> and I want to put <code>sum</code> of child table <code>input</code> into <code>parent</code> <code>td</code> input</p>

<pre><code>&lt;table cellspacing="0" rules="all" border="1" id="gvSPActivities" style="border-collapse: collapse;"&gt;
    &lt;tr&gt;
        &lt;th scope="col"&gt;
            TextVal1
        &lt;/th&gt;
        &lt;th scope="col"&gt;
            TextVal2
        &lt;/th&gt;
        &lt;th scope="col"&gt;
            TextVal3
        &lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr class="gridrow2"&gt;
        &lt;td&gt;
            &lt;input name="gvSPActivities$ctl02$TextVal1" type="text" id="gvSPActivities_TextVal1_0"
                class="numeric" style="width: 150px;" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;input name="gvSPActivities$ctl02$TextVal2" type="text" id="gvSPActivities_TextVal2_0"
                class="numeric" style="width: 150px;" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;input name="gvSPActivities$ctl02$TextVal3" type="text" id="gvSPActivities_TextVal3_0"
                class="total" style="width: 150px;" /&gt;

        &lt;table&gt;

       &lt;tr&gt;
           &lt;td&gt;
                        &lt;input name="gvSPActivities$ctl02$gvBenefic$ctl02$txtMaleBenefic" type="text" id="gvSPActivities_gvBenefic_0_txtMaleBenefic_0" class="numeric" style="width:100px;" /&gt;
                        &lt;/td&gt;&lt;td&gt;
                        &lt;input name="gvSPActivities$ctl02$gvBenefic$ctl02$txtFemaleBenefic" type="text" id="gvSPActivities_gvBenefic_0_txtFemaleBenefic_0" class="numeric" style="width:100px;" /&gt;
                        &lt;/td&gt;

                &lt;/tr&gt;


&lt;/table&gt;
            &lt;/td&gt;
    &lt;/tr&gt;

&lt;/table&gt;
</code></pre>

<p>Thanks.</p>
