Will this code work? Javascript/asp.net (Code not working)
<pre><code>        &lt;td class="style4"&gt;
            &lt;input type="text" ID="txtFirstName" runat="server" maxlength="50"
            class="DefaultTextbox" style="width:180px;" value="First Name" 
            onfocus="if(this.value=='First Name') {this.value = '';document.getElementById('spanFirstName').visible=false;}"
            onblur="if(this.value=='') this.value = 'First Name'"
            /&gt;
        &lt;/td&gt;
        &lt;td&gt;
             &lt;span id="spanFirstName"&gt;Should be less than 50 characters.&lt;/span&gt;
        &lt;/td&gt;
</code></pre>

<p>I want to do something like this</p>

<pre><code>onfocus = "if(this.value=='First Name') 
{
    this.value = '';
    document.getElementById('spanFirstName').visible=false;
}"
onblur = "if(this.value=='') this.value = 'First Name'"
</code></pre>
