Knowledgebase Home Page  >  SearchUnit
Search the Knowledge Base
How can I clear default text from the SearchBox?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=173&catId=54

Options

Print this page
Email this to a friend

If you are using default text in the SearchBox control, such as 'Search Here', you can clear the text when the user clicks in the search field using the following in the code behind page;

 SearchBox1.QueryTextBox.Attributes.Add("onclick", "this.value=''");

 


Related Questions:

Attachments:

No attachments were found.