Trigger javascript event when using Google auto fill on firefox

前端 未结 3 1683
失恋的感觉
失恋的感觉 2021-01-13 02:57

I have a form, in which I am disabling the submit button until an user has typed in all the mandatory fields. I was initially using onkeyup to keep a tab on the mandatory fi

3条回答
  •  广开言路
    2021-01-13 03:16

    There's no need to add complex setTimeOut nor setInterval.

    Just catch the "change" event of any refillable textbox of the form, go through every refillable field and if it's not empty hide the label

提交回复
热议问题