asp.net - TextBox with Default value -
i want use textbox shows text.
for example : someone@example.com. when user clicks on it, textbox cleared , ready user type.
if working on newer browsers can use placeholder
property new in html 5
<asp:textbox id="textbox1" runat="server" placeholder="someone@exmaple.com"></asp:textbox>
otherwise can use onfocus
, onblur
event described here
Comments
Post a Comment