1

I have to disable browser prompt to remember the password on login form, I have tried AUTOCOMPLETE="OFF" but it doesn't work

Imran Ali
  • 85
  • 2
  • 8

2 Answers2

0

Can you please share your code. Especially that password tag.

I have faced the same problem. But this has fixed by below code.

    @Html.TextBoxFor(m => m.Password, new { @id ="Password", @Placeholder = "Password", @type = "Password", @required = "required", @Value = "", @autocomplete = "off" })
Power Star
  • 1,540
  • 2
  • 10
  • 24
0

Try this HTML:

<input type="text" name="password" required autocomplete="off">

and JS:

function validate() {
    $("input[name='password']").attr("type", "password");
}
$('input[name="username"]').on('keyup click', validate);
$('input[name="password"]').on('keyup click', validate);