Does anyone know how to hide iPhone's keyboard in Safari after user touch button "Go" instead of "Done"?
I need solution for Javascript and HTML5.
To hide it, slide your finger down from above the text-entry box and the keyboard will start to disappear. Carry on until only the text-entry box is left. To make the keyboard reappear, tap the text-entry box and it will shoot right back up so text can be entered again.
Tap the back button on your Android. It's the left-pointing arrow button at the bottom of the screen, either at the bottom-left or bottom-right corner. The keyboard is now hidden.
With jQuery
You should unfocus the input from the button you click,
$("#button_id_clicked").click(function() {
$("#search_input_id").blur(); // UNFOCUS THE INPUT
});
I use it on my web app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With