I have a form with two inputs, submit button is disabled by default. I want to enable the button if the inputs are not empty or when the browser auto fill the form. Is there a way of enabling the button when browser auto fill the form?. Currently I'm using setTimeout.

```
function notEmpty(){
if ($('#password').val() !== '' && $('#useremail').val() !== ''){
    button.prop('disabled',false);
}
}
setTimeout(function(){ notEmpty(); }, 5000);

```