javascript - Event handler / trigger for when web browser's autofill is used -
i have form inputs labels hovering above them placeholders. user types text, these labels hidden. problem when browser autofill fired, , chrome example populates inputs values, labels left visible, creating overlapping of label text, , input text. need trigger fired when autofill used can hide these labels.
i have found a hack solution, requires timer checks each input value , listens changes. isn't ideal me because of resource consumption, , lot of code simple function.
is there event listener or effect, if input autocompleted, trigger function of own?