Prevent input to auto complete and auto capitalizes.

As the web browsers store the form data in there cache and shows user the pre-filled text in inputs. It’s a good thing but sometimes like for users payment details and captcha filling which you don’t want to stored by the browsers. Earlier it was done by js but now it’s possible to do in HTML tag itself, just add autocorrect=”off” in your input tag.

 

<input type="text" name="testing" autocorrect="off"></input>

 

As we know mobile devices and tabs picks first letter to capitalized whenever we start writing. You can now make capitalization off for your input fields, just add autocapitalize=”off” in you input tag.

 

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

 

 

Written by Ranjeet Jha

Ranjeet Jha

Hey there! My name is Ranjeet. I’m a Web Designer & Front-end Developer. I design, code, build & promote all things HTML5, CSS3, JavaScript & jQuery. In this blog you will find solutions of day to day problems faced by you.. Enjoy Coding..

Leave a Reply

Your email address will not be published. Required fields are marked *