For Angular users, Since the autocomplete = 'off'
ignore by new chrome versions, chrome developer suggests autocomplete= 'false | random-string'
, so the google chrome/modern browsers have 2 type of users helpers -
- autocomplete='off' (which prevents last cached suggestions).
- autocomplete = 'false | random-string' (which prevents autofill setting, since the 'random-string' is not known by the browser).
so what to do, in case of disabling both the annoying suggestions? Here is the trick:-
add autocomplete = 'off'
in every input fields. (or simple Jquery).
$("input").attr('autocomplete', 'off');
Remove the <form name='form-name'>
tag from HTML code and add ng-form = 'form-name'
in your <div>
container. adding ng-form="form-name"
will also retain all your validations.