How to hide keyboard in jQueryMobile page in a Phonegap app?

后端 未结 7 583
庸人自扰
庸人自扰 2020-12-17 14:23

I have a problem with hiding keyboard in the iPhone simulator. My HTML code:

7条回答
  •  盖世英雄少女心
    2020-12-17 14:56

    Instead of switching focus to another element you can simply blur your input like this:

    $('#searchBar').blur();
    

    It will hide the virtual keyboard.

提交回复
热议问题