Odd behavior in javascript
<p>I have a table like so</p>

<pre><code>&lt;table&gt;
  &lt;tr id="trRow1" runat="server" style="display: none"&gt;
    &lt;td&gt;First Name:&lt;/td&gt;
    &lt;td&gt;&lt;asp:Label id="lblFirstName" runat="server"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Last Name:&lt;/td&gt;
    &lt;td&gt;&lt;asp:Label id="lblLastName" runat="server"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>As you can see, initially the first row is not being displayed. When the user clicks a certain radio button on the page an asynchronous postback occurs, and at that time I set the style of trRow1 to "inline". Nothing fancy; nothing new. It works just great.</p>

<p>Or at least up until I try to do the following in a javascript function.</p>

<pre><code>function Test() {       
  var obj = trRow1.getElementsByTagName("select");
  alert(obj.length);
}
</code></pre>

<p>At the point I call Test(), I get an error that says "Microsoft JScript runtime error: 'trRow1' is undefined."</p>

<p>My guess is it has something to do with the fact that I'm messing with setting the Display style using AJAX, and for whatever reason the DOM can't find trRow1 even after I set it's display to "inline".</p>

<p>Can anyone throw me a bone on this one? I'm stuck.</p>
