Categories
HTML

How to disable autocomplete in input?

Spread the love

Sometimes, we want to disable autocomplete in input.

In this article, we’ll look at how to disable autocomplete in input.

How to disable autocomplete in input?

To disable autocomplete in input, we can set the autocomplete attribute to off.

For instance, we write:

<input autocomplete="off" type="text" name="username">

to add an input with autocomplete disabled.

Conclusion

To disable autocomplete in input, we can set the autocomplete attribute to off.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

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