Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start text in input field with lowercase on Android?

Tags:

html

android

I have this webpage and I have this textarea

<textarea class="clipboard"></textarea>

that I use to for mobile entry, and when I type something it always start for uppercase letter (the keyboard is in uppercase mode for first letter) how can I disable this feature?

It's fix when I add left: -9999999px but then the page don't scroll with the input.

like image 529
jcubic Avatar asked Dec 02 '22 15:12

jcubic


1 Answers

Use the autocomplete, autocapitalize, autocorrect and spellcheck attributes:

<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>

Works on Chrome Dev (latest) and Android 5.1.1 with Google Keyboard and AOSP Keyboard. Doesn't work with SwiftKey Neural (which is in Alpha BTW).

like image 195
EvilTak Avatar answered Dec 06 '22 10:12

EvilTak