Skip to Content Skip to Menu

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

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