I have a web application which i open it in iPad.

There is a Search Textbox.

To enter data in the search textbox, ipad opens the keyboard with a 'Search' button/Key in blue color.

When i put some search string and hit the search button on ipad keyboard, the keyboard still stays on the screen.

I want it to hide after tapping.

How can i do so.

What are the changes will need to do in my HTML markup to achieve this.

Below is my existing code.

<input id="txtsearch" type="text" maxlength="100" style="width:160px;" onkeypress="Search_onKeyPress(event)" />//Calls a javascript function
<asp:Button ID="btnSearch" ClientIDMode="Static" Text="Search" OnClientClick="Search_onclick(); return false;" runat="server" /> //Calls a javascript function

Related posts

Recent Viewed