Jquery and Table Manipulation
<p>I have a created a table through looping in php. i.e. number of rows in table will be dynamic(1,2,3,4,5 etc. as i want to display).
I want that in each row at last td, when we focus then all previous td's values will be calculated and will be shown in last td.</p>

<pre><code>&lt;select name="number" id="number"  onchange="document.form2.submit()"&gt;
&lt;? for($j=1;$j&lt;=5;$j++) {?&gt;
    &lt;option value="&lt;?=$j ?&gt;" &lt;?=($j==$_REQUEST['number'])?'selected':'' ?&gt;&gt;&lt;?=$j ?&gt;&lt;/option&gt;
&lt;? } $num=$_REQUEST['number']; ?&gt;
&lt;/select&gt;
&lt;table width="100%" border="0"  cellpadding="4" cellspacing="5" id="mytable"&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th width="35%"&gt;Length&lt;/th&gt;
            &lt;th width="36%"&gt;Width&lt;/th&gt;
            &lt;th width="29%"&gt;Area&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
    &lt;? for($i=0;$i&lt;$num;$i++) {?&gt;
        &lt;tr class="row"&gt;
            &lt;td&gt;&lt;input type="text" name="length" class="textbox" id="length"/&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="width" class="textbox" id="width" /&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="area" class="textbox" id="area" onfocus="" /&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;? } ?&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>please provide the code to select last td of each row.
i have tried much but not succeeded yet.All help will be appreciated...</p>
