05 Mar, 2010
How to disable text auto correction in iPhone web app
To turn off iPhone auto correction feature (predictive dictionary) on textboxes, add autocorrect="off" attribute to your input tag.
<input type="text" id="keyword" name="keyword" autocorrect="off" />
You can also turn off auto capitalising/capitalizing feature by adding autocapitalize="off" attribute.
<input type="text" id="keyword" name="keyword" autocorrect="off" autocapitalize="off" />
And lastly, you can turn off auto complete in a similar way.
<input type="text" id="keyword" name="keyword" autocorrect="off" autocapitalize="off" autocomplete="off" />
More HTML tips for iPhone web apps can be found in Building iPhone Apps with HTML, CSS, and JavaScript book published by O’Reilly Media, Inc.
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.
Other similar posts that you might be interested in:
- Making a website iPhone-friendly using CSS
- Tips for iPhone Web App Development
- Clear default text in input boxes on click with jQuery
- Customising reCAPTCHA Theme
- 10 tips I have learned from WDS2007 – Day 1
- Book Review: Master Mobile Web Apps with jQuery Mobile
- Framebar (like diggbar) example in html and css with no javascript
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

