Disable Chrome autofill

Contains tips for configurators working with Aware IM
Post Reply
hpl123
Posts: 2579
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)
customaware
Posts: 2391
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Disable Chrome autofill

Post by customaware »

Oh My Goodness!.

You my friend are a Steely Eyed Missile Man.

Fantastic.

Thanx Henrik
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
joben
Posts: 221
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: 2579
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