开发者

Disabling iPhone keyboard when selecting an HTML textarea

I am trying to disable the iPhone keyboard for only some of the textAreas in an HTML document. This document 开发者_JAVA百科is displayed in a UIWebView. I have tried the CSS webkit tags such as: -webkit-user-select:none; -webkit-touch-callout:none; -webkit-user-modify:none;. I have also tried the readonly property, but it does not suppress the keyboard, either. Is there any way to disable the keyboard for only certian text areas? I think users of my app will find it frustrating that the keyboard is popping up at inappropriate times.


do you use html for this? if yes you can use the disabled attribute <textarea name="mytextarea" cols="2" rows="2" disabled></textarea>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜