Will this code work? Javascrpt/asp.net (Code not working)
            <td class="style4">
                <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'"
                />
            </td>
            <td>
                 <span id="spanFirstName">Should be less than 50 characters.</span>
            </td>

I want to do something like this
 

onfocus="if(this.value=='First Name') {this.value = '';document.getElementById('spanFirstName').visible=false;}"
            onblur="if(this.value=='') this.value = 'First Name'"
Will this code work? Javascrpt/asp.net (Code not working)
===

            <td class="style4">
                <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'"
                />
            </td>
            <td>
                 <span id="spanFirstName">Should be less than 50 characters.</span>
            </td>

I want to do something like this
 

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