开发者

Hide mobile safari keyboard when form submitted in Ajax application

开发者 https://www.devze.com 2023-01-14 11:06 出处:网络
I have a textfield which fires an event in a web app, but I\'d like the keyboard to close whe开发者_如何学Pythonn the user presses enter. Using jquery to disable usual submission.Create blur event

I have a textfield which fires an event in a web app, but I'd like the keyboard to close whe开发者_如何学Pythonn the user presses enter. Using jquery to disable usual submission.


Create blur event

To open:

$('input#search').focus();

To close:

$('input#search').blur();
0

精彩评论

暂无评论...
验证码 换一张
取 消