Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basically i need help with input fields that when clicked the text (value) disappears but if the user has not entered anything in it would revert back to what was originally there.

I have managed to get the value inside to disappear once clicked without the use of javascript but would love someone to point me in the right direction of how to revert the original value back if nothing was entered in if the user did click inside as the field continues to be blank which i know is minimal but it something small that is annoying me.
Posted
Updated 24-Sep-12 19:57pm
v2

Why dont you use WaterMarkExtender in Ajax Control Tool Kit? Have a look in below link, hope it suits your requirement:
WaterMark Extender[^]
How to use wantermark extender[^]
how-to-add-ajax-watermark-extender[^]
 
Share this answer
 
You can use JQuery Watermark[^] to show the watermark in your input controls.
Refer the links for similar discussions & Articles:
Simple Javascript Watermarks in Input Fields[^]
input textboxes with watermark hints[^]
Watermark plugin for jQuery[^]


--Amit
 
Share this answer
 
please refer this links it might help you.

Water mark effect asp.net[^]

simple Water mark effect[^]

Water mark[^]
 
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