How can I duplicate this in jQuery?
<p>I have this code:</p>

<pre><code>/* Modify the footer row to match what we want */
var nCells = nRow.getElementsByTagName('th');
nCells[1].innerHTML = iPageCPSV;
nCells[2].innerHTML = iPageCGV;
nCells[3].innerHTML = iPagePPSV;
nCells[4].innerHTML = iPagePGV;
</code></pre>

<p>It works just fine as it is.  However I have added another <code>&lt;tr&gt;</code> into the section now.  And I am having trouble figureing out how to populate the <code>&lt;th&gt;</code> in the second <code>&lt;tr&gt;</code></p>

<pre><code>&lt;tfoot&gt;
    &lt;tr style="background-color: #DDDDDD;"&gt;
        &lt;th align="right" colspan="6"&gt;
            Page Total:
        &lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr style="background-color: #DDDDDD;"&gt;
        &lt;th align="right" colspan="6"&gt;
            Downline Total:
        &lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
        &lt;th align="left"&gt;&lt;/th&gt;
    &lt;/tr&gt;
&lt;/tfoot&gt;
</code></pre>

<p>Before I added the second <code>&lt;tr&gt;</code> with more <code>&lt;th&gt;</code> everything worked.  It still works, I just don't know how to populate the data into the second row.  Can anyone help me modify the existing JavaScript or tell me how to duplicate it into jQuery?</p>
