Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone selects a Shift key when focusing on a HTML input field. How to turn this off?

When I'm focus on an input field on an iPhone, the Shift key is turned on to make sure that the input starts with upper case. Is there a way to turn off this functionality and not have the Shift key when I focus on a field?

I understand why this might be good in some cases but in my case this is a user name or email field, most of which don't start with upper case letter.

Update: The answer lead me to Safari Web Content Guide page which I'll be referencing more often from now on.

like image 895
dev.e.loper Avatar asked Sep 29 '11 05:09

dev.e.loper


1 Answers

You can solve it by setting autocapitalize as off

<input type="text" name="test1" autocapitalize="off"/>

and also Set the autocorrect attribute of your textbox as off to turn off the auto correct feature.

<input type="text" name="test1" autocorrect="off"/>
like image 50
sElanthiraiyan Avatar answered Oct 27 '22 13:10

sElanthiraiyan