Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

179
Visualizações
How to fire autofill event in Javascript

I am working on a project where I have to take input from the user, do some calculations, and suggest an output to the user, and when I have something to suggest, I turn the input background to yellow, to declare to the user that it's a suggestion.

enter image description here

The problem I have is that I noticed that browsers treat input suggestions differently. For example, the background color of the input may change from a browser to another (Chrome uses a blue background color, and Safari uses a yellow one). What I'm trying to do is to fire an event on JS (or any other solution) to let the browser decide which style to give to the input. Is there a way to do that ? or is the browser not allowing that to happen programmatically ?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You need to make the auto filling logic by yourself. The browser's autofilling API is not supporting such kind of customization.

You can check this simple example to make the autocomplete. That's different what you think, but in this way, you would need to make custom logic when filling it.

I would like to collaborate via sandbox if you give me more detail.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda