Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome autofill does not trigger validation. Standard autofill event? [duplicate]

I'm doing some client-side validation with https://github.com/jzaefferer/jquery-validation/

It works fine unless the Chrome autofill is triggered, at which point the validation plugin does not recognize changes to the input values and does not trigger.

I am not allowed to use autocomplete="off" and I'm not sure that would prevent the autofill anyway.

Is there any way I can universally listen for browser autofill events?

like image 252
bingo Avatar asked Oct 16 '15 14:10

bingo


1 Answers

As i can test it, input event is fired:

$('input').on('input',function(){
    console.log(this.value);
});
like image 97
A. Wolff Avatar answered Sep 24 '22 15:09

A. Wolff