-
Articles
-
HTML
-
Turn off autocomplete - disable cache on form inputs of HTML Pages
Turn off autocomplete - disable cache on form inputs of HTML Pages
- Posted: 15th January 2010
- Created by: Robert
- Found in: HTML
Most of the time having auto complete on form inputs is great, especially as a developer when you're constantly filling out forms to test data. I recently came across an instance where the auto complete was overiding my AJAX scripts on keyup. To cure this issue its as simple as adding the attribute, autocomplete="off", to the input.
<input name="input_name" type="text" autocomplete="off" />