disable spelling assistance in HTML for mobile devices

做~自己de王妃 提交于 2019-12-09 06:49:18

问题


Is there a way to disable spelling assistance in HTML input fields in BlackBerry 6/Iphone/android?
I tried setting the
autocomplete="off" autocapitalize="false" autocorrect="false" spellcheck="false"
", but doing that unfortunately doesn't seem to disable the autocomplete .

I'm trying to do this because I want to use a custom autocompleter, but the BlackBerry autocompleter keeps getting in the way.

Thanks
Kevin
Any Ideas would be great


回答1:


Don't use "false", use "off":

<input type="text" id="test" name="keyword" autocorrect="off" autocapitalize="off" autocomplete="off" />



回答2:


I was just doing this and testing on an iPhone and all of them seem to use "off" except spellcheck needs to be "false."




回答3:


For blackberry, instead of using input type="text", you can use input type="email". Auto correct is by default off for email in blackberry. This is specially very helpful when application is being build using sencha.



来源:https://stackoverflow.com/questions/5380972/disable-spelling-assistance-in-html-for-mobile-devices

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