Hide mobile safari keyboard when form submitted in Ajax application
-
01-10-2019 - |
Question
I have a textfield which fires an event in a web app, but I'd like the keyboard to close when the user presses enter. Using jquery to disable usual submission.
Solution
Create blur event
To open:
$('input#search').focus();
To close:
$('input#search').blur();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow