javascript - Close keyboard in UIWebView -


i working on web application accessed ios uiwebview. when user touches input text field, uiwebview automatically opens keyboard. fine point.

now when user taps anywhere on page want dismiss keyboard. method this.

i tried following code did not work me -

            $(document).on("tap", function (e) {                  document.activeelement.blur();              });

try

document.foo.bar.myinput.blur(); 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -