Disable Chrome autofill

Contains tips for configurators working with Aware IM
Post Reply
hpl123
Posts: 2360
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Disable Chrome autofill

Post by hpl123 »

Hi all,
Here is how to disable Chrome (and other browsers?) autofill via Jquery. This is for all text fields on a form:

Code: Select all

$("input[type='text']").each(function(){$(this).attr("autocomplete","new-password");});
Henrik (V8 Developer Ed. - Windows)
eagles9999
Posts: 2222
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Disable Chrome autofill

Post by eagles9999 »

Oh My Goodness!.

You my friend are a Steely Eyed Missile Man.

Fantastic.

Thanx Henrik
Cheers,
Mark
_________________
AwareIM 6.0, 8.4, 8.6 (build 2920) MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Chrome, Edge
Upcloud
Image
joben
Posts: 65
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Disable Chrome autofill

Post by joben »

I had no idea it was possible to do this via jquery.

Genius!
Regards, Joakim

Image
hpl123
Posts: 2360
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Disable Chrome autofill

Post by hpl123 »

Yeah, this was a godsend when I found it. I was "certain" it couldn´t be done but after pulling my hair out about this for a long time I decided to find a solution and it was possible :mrgreen:
Henrik (V8 Developer Ed. - Windows)
Post Reply