I have an interesting issue reagarding to browser autofill functionality. On my web app there is a login page with 2 inputs username and password. I save my password and username via browser. If I try to login again browser autofills the credentials. It is OK but my login button is "greyed out" until user do not changes the inputs or clicks into the form. I want to achieve that after autofill button is enabled.
- I tried
autocomplete="off|false|..."
property it does not work -> here I wanted to prevent autofill - My second idea was to check inputs after page load in some intervals. So I used setInterval() hovever after browser autofilled the password input I'm not able to get value of it. To be more exact I for call
$('#login-password').val()
I get empty string hovever it is filled in.
Did someone meet that kind of behaviour? So it would be also acceptable solution to prevent autofill by browse but as I mentioned autocomplete
property did not work. I'm testing on Chrome Version 47.0.2526.106 m