Show message when start typing inside textbox using javascript
<p>I'm using ASP.NETand I want to show message behind a textbox when I start to write in it, I want to do that on the client side so I think javascript is the key.</p>

<p>Edit :</p>

<p>My code:</p>

<pre><code>&lt;tr&gt;
                    &lt;td&gt;
                        &lt;asp:Label ID="Label1" runat="server" Text="Alternate Email :"&gt;&lt;/asp:Label&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;asp:TextBox ID="_txtAlternateEmail" runat="server" onkeyup="typetext(this);"&gt;&lt;/asp:TextBox&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;asp:Label ID="Label2" runat="server" Text="Security Question :"&gt;&lt;/asp:Label&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;asp:TextBox ID="_txtSecurityQuestion" runat="server"&gt;&lt;/asp:TextBox&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
</code></pre>

<p>and the javascript</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function typetext(tb) {
        var mySpanElement = document.getElementById("_txtSecurityQuestion");
        mySpanElement.innerText = tb.value;
    }
&lt;/script&gt;
</code></pre>
