Why can I access asp:TextBox in javascript, but not asp:Label?
<p>Here is a simple demonstration of what I'm talking about</p>

<p>js in head tag:</p>

<pre><code>  function changeTxt(frm){
    var lblo = frm.txt1;
    lblo.value = "hey guy";

    var lbl = frm.lblStatus;
    lbl.innerHTML = "hello world";
  }
</code></pre>

<p>aspx/html markup:</p>

<pre><code>&lt;asp:Label ID="lblStatus" runat="server"&gt;&lt;/asp:Label&gt;
&lt;asp:TextBox ID="txt1" runat="server"&gt;&lt;/asp:TextBox&gt;

&lt;button onclick="changeTxt(this.form);"&gt;go&lt;/button&gt;
</code></pre>

<p>The js finds <code>txt1</code> (<code>input</code> html element) and changes the value. But why can it not find <code>lblStatus</code> (<code>span</code> html element)? It comes up as <code>undefined</code>. They are all in the same form.</p>

<p><strong>Edit:</strong> The problem seems to be accessing <code>span</code> nodes in js. I guess you cannot access them through the form object like I was.</p>
