最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Iphone: Virtual keyboard don´t hide after tapingclicking on "Go" Button - Stack Overflow

programmeradmin2浏览0评论

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();

发布评论

评论列表(0)

  1. 暂无评论