Created
November 24, 2015 22:23
-
-
Save chekit/91304e2b8a0bd7a46bb1 to your computer and use it in GitHub Desktop.
Hide Native Keyboard On iPhone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Задача: убирать нативную клавиатуру после ввода параметра в поле поиска и выдачи результатов | |
//Данную функцию вызывать на 'success' выполнения запроса | |
var hideKeyboard = function() { | |
document.activeElement.blur(); | |
$("input").blur(); | |
}; | |
//Страница с вопросом: http://stackoverflow.com/questions/5937339/ipad-safari-make-keyboard-disappear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment