How to Disable/Turn off Browser Autocomplete on Web Form Field/input Field?

Problem:

You create a form for users in your page.  When a user starts to fill the form, by default, browser shows options or some suggestions to fill in the field, based on earlier typed values. You need to disable this.

Solution:

Add the following code in the opening form tag.

The code:

[html]<form autocomplete="off">[/html]

Explanation:

When the attribute “autocomplete” sets to “off”, it forbids the browser to display options.

Leave a Reply

Your email address will not be published. Required fields are marked *