How To Hide And Show The Keyboard On An Iphone Using Phonegap And Javascript
In my Phonegap application, I have one screen where if the user taps or clicks outside of the textarea, the keyboard should hide. I used the .blur( function, but by doing that the
Solution 1:
After calling blur, try window.scrollTo(0,0)
.
If I recall correctly, you might have to wrap it in a 0ms setTimeout
$('#someInput').blur();
setTimeout(function(){
window.scrollTo(0, 0);
}, 0);
Post a Comment for "How To Hide And Show The Keyboard On An Iphone Using Phonegap And Javascript"