admin管理员组

文章数量:1355535

I´ve got a form with an input field and a submit button. Nothing fancy here...

On the iPhone (iPhone 4S, iOS 5.1) i use the virtual keyboard to fill the input field and when i click/tap on the Go Button of the keyboard the form is submitted. But the virtual keyboard don´t hide after the submit.

If i use the submit button of the form the keyboard disappear. This problem exist only when i click the Go Button of the keyboard

Are there any javascript events i should check? Or do you have a hint for me?

Btw: In other forms with the same structure this problem do not exist.

Thanks in Advance

I´ve got a form with an input field and a submit button. Nothing fancy here...

On the iPhone (iPhone 4S, iOS 5.1) i use the virtual keyboard to fill the input field and when i click/tap on the Go Button of the keyboard the form is submitted. But the virtual keyboard don´t hide after the submit.

If i use the submit button of the form the keyboard disappear. This problem exist only when i click the Go Button of the keyboard

Are there any javascript events i should check? Or do you have a hint for me?

Btw: In other forms with the same structure this problem do not exist.

Thanks in Advance

Share Improve this question asked May 3, 2012 at 8:18 MikaMika 1,53915 silver badges22 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

Use this code in click event to dismiss virtual keyboard

document.activeElement.blur();

本文标签: javascriptIphone Virtual keyboard don180t hide after tapingclicking on quotGoquot ButtonStack Overflow