I've created a web application which uses a tagbox drop down. This works great in all browsers except Chrome browser (Version 21.0.1180.89).
Despite both the input
fields AND the form
field having the autocomplete="off"
attribute, Chrome insists on showing a drop down history of previous entries for the field, which is obliterating the tagbox list.
Best Answer
Prevent autocomplete of username (or email) and password:
Prevent autocomplete a field (might not work):
Explanation:
autocomplete
still works on an<input>
despite havingautocomplete="off"
, but you can changeoff
to a random string, likenope
.Others "solutions" for disabling the autocomplete of a field (it's not the right way to do it, but it works):
1.
HTML:
JS (onload):
or using jQuery:
2.
HTML:
JS (onload):
or using jQuery:
To add more than one field using jQuery:
Works in:
Chrome: 49+
Firefox: 44+