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


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.


Add the following code in the opening form tag.

The code:

<form autocomplete="off">


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