05 Mar, 2010
How to disable text auto correction in iPhone web app
Web Development » Snippets, Troubleshooting » 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.
Other similiar 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
- Framebar (like diggbar) example in html and css with no javascript
- Building mashups for the society (Mashup Australia) – Part I






