jquery table rows calculation
<p>Here is table code...</p>

<pre><code>&lt;tr&gt;
&lt;td class="installationcharge"&gt;500&lt;/td&gt;
&lt;td class="supportcharge"&gt;300&lt;/td&gt;
&lt;td class="totalcharges"&gt;800&lt;/td&gt;
&lt;/tr&gt;
    &lt;tr&gt;
&lt;td class="installationcharge"&gt;200&lt;/td&gt;
&lt;td class="supportcharge"&gt;400&lt;/td&gt;
&lt;td class="totalcharges"&gt;600&lt;/td&gt;
&lt;/tr&gt;
&lt;tfoot&gt;
&lt;tr&gt;&lt;td&gt;Total :&lt;/td&gt;
&lt;td class="totalinstcharges"&gt;&lt;/td&gt;
&lt;td class="totalsuppcharges"&gt;&lt;/td&gt;
&lt;td class="totalchartotal"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tfoot&gt;
</code></pre>

<p>I am trying to calculate and post of all installationcharge, supportcharge, totalcharges in their tfoot total td. I have tried to use jquery each function but no luck, can you help out please. thanks.</p>
