How to call a function using 2 elements (by class) in EACH row of a table?
<p>My approximate HTML:</p>

<pre><code>&lt;div id='ComputerID'&gt;&lt;/div&gt;

&lt;table id='gridComputerApps'&gt;
&lt;tr&gt;
  &lt;td&gt;&lt;div class='licenseOutput'/&gt;&lt;/td&gt; &lt;td&gt;&lt;div class='AppName'&gt;IE6&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='licenseOutput'/&gt;&lt;/td&gt; &lt;td&gt;&lt;div class='AppName'&gt;Firefox&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='licenseOutput'/&gt;&lt;/td&gt; &lt;td&gt;&lt;div class='AppName'&gt;SuperApp #2&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>(Note, there are possibly other columns mixed in here, so I want to be selecting on class name).  </p>

<p>So, using jQuery, I have to act on each row in this table.<br />
For each row, I have to pass: ('#ComputerID').val(), ('.AppName').val() and ('.licenseOuput') into a javascript function, which then using the values for ComputerID and AppName, sets the text and color of the licenseOutput div.</p>

<p>So, I am thinking something <strong>starting with</strong> the following might work:  </p>

<pre><code>    $('#gridComputerApps').children('tr').each(function() {  
        //so, do I now have access to all the ,tr&gt; elements within #gridComputerapps?  
        //now, how do i select the subordinate elements, for each row???  
 });
</code></pre>

<h2>SOLUTION</h2>

<p>Here's what finally worked for me:  </p>

<pre><code>    $('#gridComputerApps tr').each(function() {
        var networkUserID = $("#PrimaryUserNetworkID").text();
        var appName = $(this).find(".AppName").text();
        var licenseOutputCell = $(this).find(".licenseOutput");
        if (appName != '') CheckAppSecForUser(licenseOutputCell, appName, networkUserID);
    });
</code></pre>

<p><strong>Important note to asp.net users</strong>:<br />
From what I can tell, setting ControlStyle-CssClass="AppName" on an asp BoundField is useless, and the classname is never output to the html.<br />
Instead, I had to make a template field, and wrap the boundfield in a div, like so:  </p>

<pre><code>&lt;asp:TemplateField HeaderText="Application Name" Visible="True" HeaderStyle-Width="15%" ItemStyle-VerticalAlign="Top"&gt;
                            &lt;ItemTemplate&gt;&lt;div class="xxxAppName"&gt;&lt;%#Eval("Application.NormalizedAppName")%&gt;&lt;/div&gt;&lt;/ItemTemplate&gt;
                        &lt;/asp:TemplateField&gt;
</code></pre>
