hide keyboard in iphone safari webapp

后端 未结 9 1864
长情又很酷
长情又很酷 2020-12-13 13:40

I\'m creating a webapp for the iPhone, based in HTML/CSS/JS. I\'m using forms to receive input and pass data to the script, but a problem I\'m encountering is that the keybo

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 13:51

    $('input:focus').blur();
    

    using the CSS attribute for focused element, this blurs any input that currently has focus, removing the keyboard.

提交回复
热议问题