96
rated 0 times
[
98]
[
2]
/ answers: 1 / hits: 57816
/ 11 Years ago, thu, january 16, 2014, 12:00:00
I have a simple login form which works just peachy unless you use Chrome's auto complete feature.
If you start typing and use the auto complete feature and it auto populates your password, my angularjs model does not have any value for the password.
I tried to turn autocomplete off by setting the attribute on the form autocomplete=off
but that doesn't seem to have any effect.
How can I either:
1. Ensure that I can get the value if someone uses Chrome's auto-complete feature?
2. Disable Chrome's auto-complete feature?
<form class=form-signin name=form ng-submit=login() autocomplete=off>
<h3>Login</h3>
<input type=email name=email class=form-control placeholder=Email address ng-model=user.email required autofocus>
<input type=password name=password class=form-control placeholder=Password ng-model=user.password required>
<button class=btn btn-lg btn-primary btn-block type=submit>Sign in</button>
</form>
More From » angularjs