Created
March 2, 2016 09:57
-
-
Save bepatrickdavid/9ba398d27ca7c9b7ae84 to your computer and use it in GitHub Desktop.
jQuery: nascondere tastiera ios hide keyboard
This file contains hidden or 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
//se si preme enter | |
$(document).on("keyup", "input", function(event) { | |
// If enter is pressed then hide keyboard. | |
if(event.keyCode == 13) { | |
$("input").blur(); | |
} | |
}); | |
//nasconde | |
$("input").blur(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment