Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
How do you display a hint in a textbox that disappears when the textbox gets keyboard focus?
Posted
Updated 25-Oct-10 5:36am
v2
Comments
Nish Nishant 25-Oct-10 11:38am    
Vote of 5. Not sure why this was 1 voted. People should show some basic sense before down voting reasonable threads.
Nish Nishant 25-Oct-10 11:39am    
Geez, so it was a Platinum 1 vote too. Sad behavior there!
Sandeep Mewara 25-Oct-10 11:57am    
Gold... you have gold authority... if it's 3/5 now, then the guy should be gold one, ain't it?
Nish Nishant 25-Oct-10 12:04pm    
I think it picks the higher of Author and Authority rep.

You can use an existing jQuery (javascript libary) plugin to make that tick.

Remy Sharp's solution[^]

Cheers.
 
Share this answer
 
v2
Sounds like you need a textbox with Watermark. Have a look at this: TextBoxWatermark Demonstration[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900