I found the solution for this at http://uihacker.blogspot.com/2011/10/javascript-hide-ios-soft-keyboard.html. Essentially, just do this (it worked for me):
var hideKeyboard = function() {
document.activeElement.blur();
$("input").blur();
};
More Related Contents:
- Debug iPad Safari with a PC
- How I can achieve this design using UITableView [closed]
- tableview with automatic row size based on content [closed]
- Status bar and navigation bar issue in IOS7
- iPad Safari scrolling causes HTML elements to disappear and reappear with a delay
- How can I detect if an external keyboard is present on an iPad?
- UIScrollView not scrolling
- iOS detect if user is on an iPad
- Modal Dialog Does Not Dismiss Keyboard
- UIGestureRecognizer and UITableViewCell issue
- Set dimensions for UIImagePickerController “move and scale” cropbox
- How do I stop my fixed navigation from moving like this when the virtual keyboard opens in Mobile Safari?
- UIDatePicker in UIPopover
- iOS 7 UITextView vertical alignment
- Converting iPhone xib to iPad xib?
- Can’t assign multiple Buttons to UINavigationItem when using Storyboard with iOS 5
- Animate text change in UILabel
- Make app appear as iOS 8 Suggested App at lockscreen
- iOS7 iPad Landscape only app, using UIImagePickerController
- wrong frame size in viewDidLoad [duplicate]
- UIWebView and Safari comparison
- Swift – Downloading video with downloadTaskWithURL
- remove grey background on link clicked in ios safari / chrome / firefox
- How to detect that the app is running on a jailbroken device? [duplicate]
- Open installed PWA from external url
- Can’t prevent `touchmove` from scrolling window on iOS
- Existing iOS form framework
- How to insert 40000 records fast into an sqlite database in an iPad
- Switch universal app to iPhone only app
- UICollectionView current visible cell index