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.

sample textbox

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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -