0

I tried several solutions on the internet and none of them are working for me. The saved passwords which most of the browsers store , that should not autofill in the login form. Need solution in javascript or jquery.

  • 2
    can you show some sample code of what you have tried? – Kunal Mukherjee Nov 16 '18 at 14:09
  • Welcome to StackOverflow. Could you please provide us with some more information about your problem and what exactly you have tried so far? E.g. see: https://stackoverflow.com/help/how-to-ask – r3dst0rm Nov 16 '18 at 14:11
  • I don’t see any problem here that would require a solution to begin with. What is actually needed here, is respecting the user’s choices. Whether I use a password manager in my browser or not, should not be your concern to begin with. – misorude Nov 16 '18 at 14:45

2 Answers2

0

autocomplete still works on an <input>despite having autocomplete="off", but you can change off to a random string, like nope. example:

<input type="text" name="field" autocomplete="nope">
Zainul Abideen
  • 1,829
  • 15
  • 37
  • [not a cross browser solution](https://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag) – Kunal Mukherjee Nov 16 '18 at 14:14
0

Follow the mozilla offical info how to do that:

https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

It' s a good source of information about how some things should be done. In my app i got something like this, and it works:

 <form class="login-form" autocomplete="off">
  <input id="username" type="text" placeholder="Login" autocomplete="someTextHere"> 
</form>
artsch
  • 225
  • 2
  • 10