I want to use a textbox that shows a text.
For example : [email protected]. When the user clicks on it, the textbox is cleared and ready for the user to type.
If you are working on newer browsers then you can use placeholder
property which is new in HTML 5
<asp:TextBox ID="textBox1" runat="server" placeholder="[email protected]"></asp:TextBox>
otherwise you can also use onfocus
and onblur
event to do this as described here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With