disable suggestions input html code example

Example 1: turn off autocomplete input html

<form method="post" action="/post/" autocomplete="off">
	<!-- The entire form has autocomplete disabled. -->
</form>

<!-- or you turn it off for just one input -->
<input type="text" autocomplete="off">

Example 2: how to make html input not autofill

<input type="text" autocomplete="off" />

Example 3: input tag no suggestions

//To disable suggestions
<input autocomplete="off" />

//To enable suggestion
<input autocomplete="on" />

Example 4: disable browser autocomplete

<form method="post" action="/form" autocomplete="off">
[…]
</form>

Example 5: autocomplete off input

autocomplete="off"

Example 6: dont show suggestions in input hs

<input
    id={field.name}
    className="form-control"
    type="text"
    placeholder={field.name}
    autoComplete="off"
    {...fields}/>

Tags:

Html Example