How is it done to override from HTML the suggestion on the data entered by the user? For example, I have the following field input
from an Angular application :
<input type="text" [(ngModel)]="place2search" autocomplete="off" >
...and "llamo" suggestions appear when "llao" is entered :
The autocomplete
en "off"
is added, as seen in the HTML console . How could it be disabled from the application?
Autocomplete presents some difficulties, Mozilla says .
They suggest the following ways, you can try one by one, since depending on the type of browser you use and if your forms ask for password type data, one or the other will work:
Now I explain, according to Mozilla, why possibilities 2 and 3.
The autocomplete attribute and login fields
What it essentially says is that, in some browsers, in forms that have password fields, autocomplete will ignore it even if it's off and will continue to suggest data... to turn it off you have to do something a little weird :)
Try those three possibilities.
EDIT In the specific case of this question, it has worked for the OP to add the following attribute to the input in question:
I found the solution by adding the attribute spellcheck="false" , and it turned out like this:
Thanks for the suggestions..
You only need the "autocomplete" with the off attribute, it's strange that it doesn't work for you...
Note works in HTML5.
But well here you have an official example (in English) of the w3 I hope it will help you.
https://www.w3schools.com/tags/att_input_autocomplete.asp
Try the attribute
autocomplete="off"
(I think it only works in HTML5 ).