Disable Android/iOS Keyboard on specific Input Fields

冷暖自知 提交于 2021-01-27 07:05:19

问题


I would like to disable or hide the Keyboard on Android and iOS on specific Input fields.

is this possible? something like

<input type="text" name="date" keyboard="disable" />

回答1:


Use this

$('#input').focus(function() {
  this.blur();
});


来源:https://stackoverflow.com/questions/28254100/disable-android-ios-keyboard-on-specific-input-fields

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!