How to turn off HTML input form field suggestions?

Spread the love

To turn off HTML input form field suggestions, we set the autocomplete attribute.

For instance, we write

<form action="#" autocomplete="on">
  First name:<input type="text" name="fname" /><br />
  Last name: <input type="text" name="lname" /><br />
  E-mail: <input type="email" name="email" autocomplete="off" /><br />
  <input type="submit" />

to add a form with the input with name attribute email having suggestions disabled.

We disable suggestions by setting the autocomplete attribute to off.

Leave a Reply

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