pavan  prasad

pavan prasad

  • NA
  • 18
  • 1.7k

Keep text in the TextBox at the end

Nov 3 2015 1:13 AM

Keep text in the TextBox at the end like TextBox of GMail account creation

I would like keep a text in the TextBox at the end (for reference please see the mail TextBox of GMail account creation).

I would like to know in JavaScript/HTML/ASP.NET. Please let me know

<input type="text" id="txt1" placeholder="@gmail.com" runat="server" /> and  <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender" runat="server" BehaviorID="TextBox1_TextBoxWatermarkExtender" TargetControlID="TextBox1" WatermarkText="@gmail.com"> </cc1:TextBoxWatermarkExtender>
please let me know.

Answers (3)