Skip to content Skip to sidebar Skip to footer

How To Disable Browser Prompt To Remember The Password

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

Solution 1:

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" })

Solution 2:

Try this HTML:

<inputtype="text" name="password" required autocomplete="off">

and JS:

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

Post a Comment for "How To Disable Browser Prompt To Remember The Password"