I am trying to disable google password autocomplete field in password text-box in chrome browser. I tried autocomplete off but that doesn't work then I tried auto complete : "new password" that also doesn't work. Suggest me any solution for this problem. Thanks in advance. here is my code i tried autocomplete="new-password"
Asked
Active
Viewed 2,113 times
2
-
you are talking about HTML autocomplete attribute right? – Rana Ghosh Mar 02 '17 at 12:03
-
Please follow: http://stackoverflow.com/questions/12374442/chrome-browser-ignoring-autocomplete-off. This question might be duplicate – Rana Ghosh Mar 02 '17 at 12:05
-
Possible duplicate of [Chrome Browser Ignoring AutoComplete=Off](http://stackoverflow.com/questions/12374442/chrome-browser-ignoring-autocomplete-off) – DavidG Mar 02 '17 at 12:09
-
I had tried all the above but problem is still the same... – Ankit Saxena Mar 02 '17 at 12:17
-
@RanaGhosh yes i am talking about html autocomplete attribute on chrome. – Ankit Saxena Mar 02 '17 at 12:34
2 Answers
0
I've tried to disable it -- at this point only thing i the autocomplete='off'
doesn't work
i would try this -- set the password box with a value on the pageload
$("input[type='password']").val(" ");
on focus set the value to empty
$(document).on("focus","input[type='password']",function(){
$(this).val('');
});

linc
- 104
- 2
0
For this you can use a trick. Chrome always track first <input type="password">
and the previous <input>
. So add this:
<input style="display:none">
<input type="password" style="display:none">
To just after <form>
tag started and the case will be resolved.

Rana Ghosh
- 4,514
- 5
- 23
- 40