clearing the textbox on focus

  •  01-10-2011, 7:25 AM

    clearing the textbox on focus

    Hello,
     
    I'm trying to clear the text box using javascript  during the onfocus event.   Below you will find my javascript code and the vb.net code to add the attribute
     
    vb.net
                Editor1.Attributes.Add("OnFocus", "ClearEmailTextbox()")
     
    Javascript 
    function ClearEmailTextbox()
       {  
       document.getElementById('ctl00$ContentPlaceHolder1$Editor1').value = "";
       } 
     
    Thanks for your help,
    Lonnie 
View Complete Thread