0

I have a problem with the autocomplete in HTML, I'd like to remove it from a SELECT in a web page, so it doesn't appear over the page:

This is what I want because I'm printing the result in the bottom.

<form>
    <input type="text" id="nameSearch" name="nameSearch" onkeyup="searchInput(this.value)">
    <div id="searchOutput"></div>
</form> 

I tried to add the autocomplete tag, but it works only with the INPUT tag.

<input autocomplete="off">

Matheus Cuba
  • 1,886
  • 1
  • 18
  • 27

1 Answers1

1

To Prevent autocomplete a field:

<form>
<input type="text" id="nameSearch" autocomplete="false" name="nameSearch" onkeyup="searchInput(this.value)">
<div id="searchOutput"></div>
</form> 
Alex Mayo
  • 74
  • 8
prakash tank
  • 1,249
  • 9
  • 15