Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 onFocus?

Author  Topic 

reenz
Starting Member

29 Posts

Posted - 2006-04-13 : 04:35:51
I have a text box that says "type here" . When the user click on it, i want the text box to clear. However , there is no onFocus for textbox!! How do i go about doing it?

I am doing a web application using ASP.net 1.1 C#

shallu1_gupta
Constraint Violating Yak Guru

394 Posts

Posted - 2006-04-13 : 06:24:25
You can create a javascript function and call it onclick/onfocus event of text box and check if textbox.text = "type here" then set it to blank.
Go to Top of Page
   

- Advertisement -