How TO - Turn Off Autocomplete For Input


Learn how to disable autocomplete of an input field.


Turn Off Autocomplete

Use the autocomplete attribute to turn off autocomplete for input fields:

Example

<input type="text" autocomplete="off">
Try it Yourself »

You can also turn off autocomplete for the whole form:

Example

<form autocomplete="off">
Try it Yourself »

Tip: Go to our HTML Form Tutorial to learn more about HTML Forms.

Tip: Go to our HTML autocomplete attribute reference to learn more about the automcomplete attribute.

Tip: Go to How TO - Autocomplete to learn how to create your own autocomplete component.


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.