First letter in android keyboard, in an html input text, to lowercase

ぃ、小莉子 提交于 2019-12-06 02:28:38
val

https://stackoverflow.com/a/5171812/4575543

I found this answer. Seems to work (but apparently not for all keyboard apps on android and not all older browsers). At least iOS is covering it and Chrome since version 43: https://developers.google.com/web/updates/2015/04/autocapitalize

Additionally I set the css property text-transform: lowercase; and convert the input value on keyup with value.toLowerCase() – just in case.

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