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.