0

I have one login form which I saved user name and password of my credentials. I have a form which admin can add user but saved password already show on my form and admin is force to delete those before filling form.

I have tried with solutions like:

autocomplete="off"

But was not successful solutions.

how can i prevent to showing saved username and password on add user form.

Majid Abbasi
  • 1,531
  • 3
  • 12
  • 22

1 Answers1

-1

autocomplete="off" does not works for saved passwords.

You can use below step for this problem

1) Add readonly attribute to username and password

2) Now On onclick, onmouseover and onfocus remove this attribute.

  <input type="text" readonly="" onmouseover="$(this).removeAttr('readonly')" onclick="$(this).removeAttr('readonly')" onfocus="$(this).removeAttr('readonly')" value="" name="frmUsername" class="form-control">

You can also try first answer solution given at below links

Chrome Browser Ignoring AutoComplete=Off

Community
  • 1
  • 1
Deepak Dholiyan
  • 1,774
  • 1
  • 20
  • 35