At the top of my aspx page is a searchbox. I want this textbox to have focus when the page loads, but I also want it to have some place holder text so the new users know what it does. My problem is when the box has focus the placeholder text dissapears. How do I get both simultaneously?
I think the answer is jQuery, but I'm not to familiar with jQuery so I don't know how this would be done.
Thanks for the help =)
private void Page_Load(object sender, System.EventArgs e)
{
LoginSearch.Focus();
...
}
}
-
<asp:TextBox ID="LoginSearch" placeholder="Login Search" runat="server" ToolTip="Login Search" OnTextChanged="LoginTextChanged" AutoPostBack="True" TabIndex="0"></asp:TextBox>