I have a problem with hiding keyboard in the iPhone simulator. My HTML code:
I used regeint solution but modified a bit it doesn't work because i told phonegap to allow showing the keyboard without user interaction in Cordova.plist i set KeyboardDisplayRequiresUserAction to NO
function hideTheKeyBoard() {
$($.mobile.pageContainer).after('');
$('#focusable').focus();// maybe .blur() would work too.
$('#focusable').remove();
}