Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox Highlight all text on click

Status
Not open for further replies.

AndyFreeman

IS-IT--Management
Mar 22, 2004
70
0
0
GB
Hi there

In my aspx page i have a textbox that is used for users to enter a search string, on load of the page i have a text value set to Search.....

the object in the page is as below:
<asp:TextBox ID="tb_search_google" runat="server" Text='Search.....' />

What i am looking for is when the user clicks into the box either the text dissapears or all of the text becomes highlighted so they are able to type over the text.

Is this possible

All responses would be greatly appreciated

thanks
 
ok thanks have posted across there

apologies if i used the incorrect forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top