Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey...

I am using a web application.. I use placeholder to display watermark on a texbox(eg:- placeholder="write") in source code. Can I write placaholder behind the code...

Any idea.?
Posted

1 solution

Quite easily. The placeholder attribute is no different than any other attribute on any HTML control. http://msdn.microsoft.com/en-us/library/7a9d6h4f(v=vs.100).aspx[^]
 
Share this answer
 
Comments
aravindnass 24-Nov-13 2:40am    
I want to add placeholder attribute(watermark) in textbox from the c# code..ie.. In one case - I want placeholder to show "text 1" and another case placeholder to show "text 2" in same textbox.... Can you help me...!
Dave Kreskowiak 24-Nov-13 10:14am    
I already did. NO, I will not write your code for you. I gave you 3 links, 2 of which have examples on how to do it.

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