How to find all the controls in a tr (for a specific css class) using j query
<p>I have multiple  tags with same class name. Then i have a function which loop through all the tags with this class name and hide/show these .</p>

<p>Prob: I have multiple controls within this  tag and i want to reset all these controls if this  gets hide. But I am uable to find the collection of all controls inside this .</p>

<p>HELP...!!!!</p>

<p>sample code:</p>

<pre><code>function toggleRows(rowClass, value, max) { 
        $("." + rowClass).each( 
        // For each element which a class of rowClass, run this code. 
        function () { 
            var rowNumber = parseInt($(this).attr("rowNumber")); 

            //If the specified value is &gt;= the row number, then show the row, else hide it. 
            if (value &gt;= rowNumber) { 
                $(this).show(); 
            } 
            else { 
                $(this).hide(); 
                var frm = $(this).children(); 
                for (i = 0; i &lt; frm.elements.length; i++) {   
                 if (frm.elements[i].type == "checkbox") { 
                        frm.elements[i].checked = false; 
                    } 
                    if (frm.elements[i].type == "radio") { 
                        frm.elements[i].checked = false; 
                    } 
                    if (frm.elements[i].type == "text") { 
                        frm.elements[i].value = ""; 
                    } 
                    if (frm.elements[i].type == "select") { 
                        frm.elements[i].value = 0; 
                    } 
                } 
            } 
        }); 


    &lt;tr id="id1" runat="server" class="rowClass"  rownumber="1"&gt; 
 &lt;td&gt; 
    &lt;table width="100%"&gt; 
       &lt;tr&gt; 
           &lt;td runat="server" enableviewstate="False" id="td1" class="numberColumn"&gt; 
                &amp;nbsp; 
            &lt;/td&gt; 

           &lt;td class="numberColumnNoBold"&gt; 
                &amp;nbsp; 
             &lt;/td&gt; 
          &lt;td&gt; 
              test1 
          &lt;/td&gt; 
          &lt;td align="right"&gt; 
             $ 
          &lt;asp:TextBox ID="textbox1" runat="server" CssClass="textthinnumeric" /&gt; 

              &lt;/td&gt; 
                     &lt;/tr&gt; 
           &lt;tr&gt; 
       &lt;td runat="server" enableviewstate="False" id="tdS1" class="numberColumn"&gt; 
                &amp;nbsp; 
          &lt;/td&gt; 
       &lt;td class="numberColumnNoBold"&gt; 
               &amp;nbsp; 
       &lt;/td&gt; 
       &lt;td&gt; 
             test2 
       &lt;/td&gt; 
      &lt;td align="right"&gt; 
               &lt;asp:RadioButtonList ID="rbl1" runat="server" RepeatDirection="Horizontal"&gt; 
                &lt;asp:ListItem Value="Yes" Text="Yes" /&gt; 
                &lt;asp:ListItem Value="No" Text="No" /&gt;    &lt;/asp:RadioButtonList&gt;                                                                                           &lt;/td&gt; 
      &lt;/tr&gt; 
       &lt;tr&gt; 
           &lt;td runat="server" enableviewstate="False" id="tdS21" class="numberColumn"&gt; 
                 &amp;nbsp; 
            &lt;/td&gt; 
           &lt;td class="numberColumnNoBold"&gt; 
                   &amp;nbsp; 
            &lt;/td&gt; 
            &lt;td colspan="2"&gt; 
                test3:&lt;br /&gt; 
             &lt;asp:TextBox ID="textboxSt1" runat="server" TextMode="MultiLine" Rows="3" Columns="100" /&gt;&lt;/td&gt; 
           &lt;/tr&gt; 
      &lt;/table&gt; 
   &lt;/td&gt; 
 &lt;/tr&gt;
</code></pre>
