EN
HTML - disable form autocomplete
0 points
In this article, we would like to show you how to disable form autocomplete in HTML.
Quick solution:
xxxxxxxxxx
1
<form autocomplete="off"></form>
In this example, we use the form
element's autocomplete="off"
attribute to disable the input
elements autocomplete inside the form
.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<form autocomplete="off">
5
<label>
6
<span>Field 1:</span>
7
<input type="text" name="field-1" />
8
</label>
9
<br />
10
<label>
11
<span>Field 2:</span>
12
<input type="text" name="field-2" />
13
</label>
14
</form>
15
</body>
16
</html>