HTML - Turn off autocomplete - disable cache on form inputs of HTML Pages

Facebook

Publish on Facebook

Twitter

Search

Tag Search

Recently Added

Most Popular

Member Options

15
Jan

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" />